diff error.h @ 892:3e77728d53e1 libavutil

Implement av_strerror().
author stefano
date Thu, 25 Mar 2010 22:46:35 +0000
parents 5ab17eb3a54c
children 0795a743bda1
line wrap: on
line diff
--- a/error.h	Thu Mar 25 22:46:32 2010 +0000
+++ b/error.h	Thu Mar 25 22:46:35 2010 +0000
@@ -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 */