From e2959f455850143272f3455a936dfd4d89ae9e03 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Wed, 5 May 2010 21:44:47 +0000 Subject: 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. Originally committed as revision 23031 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/error.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavutil/error.h') diff --git a/libavutil/error.h b/libavutil/error.h index a1b9ccc050..13a9a35930 100644 --- a/libavutil/error.h +++ b/libavutil/error.h @@ -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); -- cgit v1.2.3