Mercurial > libavutil.hg
diff error.h @ 916:2860cc0b5562 libavutil
Make av_strerror() return -1 even in the case when av_strerror_r() is
not defined.
This allows applications to check if av_strerror() cannot provide a
meaningful representation for the provided error code, without having
to actually check the filled string.
author | stefano |
---|---|
date | Wed, 05 May 2010 21:44:47 +0000 |
parents | a1a27468a9c5 |
children | e34e8d654ded |
line wrap: on
line diff
--- a/error.h Mon May 03 21:56:21 2010 +0000 +++ b/error.h Wed May 05 21:44:47 2010 +0000 @@ -64,7 +64,8 @@ * 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 + * @return 0 on success, a negative value if a description for errnum + * cannot be found */ int av_strerror(int errnum, char *errbuf, size_t errbuf_size);