diff --git a/libavutil/error.c b/libavutil/error.c index 78bceb4b07..0a3b4bfafd 100644 --- a/libavutil/error.c +++ b/libavutil/error.c @@ -61,7 +61,7 @@ int av_strerror(int errnum, char *errbuf, size_t errbuf_size) av_strlcpy(errbuf, entry->str, errbuf_size); } else { #if HAVE_STRERROR_R - ret = strerror_r(AVUNERROR(errnum), errbuf, errbuf_size); + ret = AVERROR(strerror_r(AVUNERROR(errnum), errbuf, errbuf_size)); #else ret = -1; #endif