From 87958234f9eb73ecb88577977ca913d04b726ebe Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 25 Mar 2010 22:46:35 +0000 Subject: Implement av_strerror(). Originally committed as revision 22684 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/error.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libavutil/error.h') 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 */ -- cgit v1.2.3