summaryrefslogtreecommitdiff
path: root/libavutil/error.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-03-25 22:46:35 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-03-25 22:46:35 +0000
commit87958234f9eb73ecb88577977ca913d04b726ebe (patch)
tree5bdcfc76148a230690e2580194e0b4a54cec2f20 /libavutil/error.h
parent0394c928db9578cd68499ef68b88026a70eb896b (diff)
Implement av_strerror().
Originally committed as revision 22684 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/error.h')
-rw-r--r--libavutil/error.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavutil/error.h b/libavutil/error.h
index 3096baa9a5..c75798192a 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -57,4 +57,14 @@
#define AVERROR_NUMEXPECTED (-MKTAG('N','U','E','X')) ///< Number syntax expected in filename
#endif
+/**
+ * Puts a description of the AVERROR code errnum in errbuf.
+ * In case of failure the global variable errno is set to indicate the
+ * error.
+ *
+ * @param errbuf_size the size in bytes of errbuf
+ * @return 0 on success, a negative value otherwise
+ */
+int av_strerror(int errnum, char *errbuf, size_t errbuf_size);
+
#endif /* AVUTIL_ERROR_H */