aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/error.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-05-03 21:56:21 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-05-03 21:56:21 +0000
commit441ea0ce91d9df7e653c7a9598a62f230cf808c0 (patch)
tree43e3af316d02d84b3f0c43332679c09296cfe1d9 /libavutil/error.h
parent17d5959998c4f523abb4fde0dd0bb7df562219d8 (diff)
downloadffmpeg-441ea0ce91d9df7e653c7a9598a62f230cf808c0.tar.gz
Make av_strerror() print an error message mentioning the error code
number if strerror_r() did not succeed for whatever reason. This avoids the need for the application to fill the string in case strerror_r() fails, for example because the error code is not known. Originally committed as revision 23015 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/error.h')
-rw-r--r--libavutil/error.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/error.h b/libavutil/error.h
index abf9a57d70..a1b9ccc050 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -60,7 +60,8 @@
/**
* Puts a description of the AVERROR code errnum in errbuf.
* In case of failure the global variable errno is set to indicate the
- * error.
+ * error. Even in case of failure av_strerror() will print a generic
+ * error message indicating the errnum provided to errbuf.
*
* @param errbuf_size the size in bytes of errbuf
* @return 0 on success, a negative value otherwise