diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-03-25 22:46:35 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-03-25 22:46:35 +0000 |
commit | 87958234f9eb73ecb88577977ca913d04b726ebe (patch) | |
tree | 5bdcfc76148a230690e2580194e0b4a54cec2f20 /libavutil/error.h | |
parent | 0394c928db9578cd68499ef68b88026a70eb896b (diff) | |
download | ffmpeg-87958234f9eb73ecb88577977ca913d04b726ebe.tar.gz |
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.h | 10 |
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 */ |