projects
/
libav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make av_strerror() return -1 even in the case when av_strerror_r() is
[libav.git]
/
libavutil
/
error.c
diff --git
a/libavutil/error.c
b/libavutil/error.c
index
3dd38a3
..
b6d6019
100644
(file)
--- a/
libavutil/error.c
+++ b/
libavutil/error.c
@@
-36,8
+36,10
@@
int av_strerror(int errnum, char *errbuf, size_t errbuf_size)
} else {
#if HAVE_STRERROR_R
ret = strerror_r(AVUNERROR(errnum), errbuf, errbuf_size);
+#else
+ ret = -1;
#endif
- if (
!HAVE_STRERROR_R ||
ret < 0)
+ if (ret < 0)
snprintf(errbuf, errbuf_size, "Error number %d occurred", errnum);
}