diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-10 22:51:17 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-10 23:02:24 +0100 |
commit | 133d81535d39ab973cfb89c29c8c6a4d771f154f (patch) | |
tree | e8ff41aa4a7be19e9d107ebc3fabce0e4213777f /libavutil/error.c | |
parent | d47eeff2741a9ad9eb4398c1d844dd4f638d6ee4 (diff) | |
download | ffmpeg-133d81535d39ab973cfb89c29c8c6a4d771f154f.tar.gz |
avutil/error: list most common error code in error_entries when strerror_r() is unavailable
Fixes Ticket4267
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/error.c')
-rw-r--r-- | libavutil/error.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/error.c b/libavutil/error.c index d2868ac9c7..44259682eb 100644 --- a/libavutil/error.c +++ b/libavutil/error.c @@ -29,6 +29,7 @@ struct error_entry { }; #define ERROR_TAG(tag) AVERROR_##tag, #tag +#define EERROR_TAG(tag) AVERROR(tag), #tag #define AVERROR_INPUT_AND_OUTPUT_CHANGED (AVERROR_INPUT_CHANGED | AVERROR_OUTPUT_CHANGED) static const struct error_entry error_entries[] = { { ERROR_TAG(BSF_NOT_FOUND), "Bitstream filter not found" }, @@ -59,6 +60,9 @@ static const struct error_entry error_entries[] = { { ERROR_TAG(HTTP_NOT_FOUND), "Server returned 404 Not Found" }, { ERROR_TAG(HTTP_OTHER_4XX), "Server returned 4XX Client Error, but not one of 40{0,1,3,4}" }, { ERROR_TAG(HTTP_SERVER_ERROR), "Server returned 5XX Server Error reply" }, +#if !HAVE_STRERROR_R + { EERROR_TAG(EINVAL), "Invalid argument" }, +#endif }; int av_strerror(int errnum, char *errbuf, size_t errbuf_size) |