diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-24 23:27:14 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-25 11:49:41 -0500 |
commit | c9bca801324f03746757aef8549ebd26599adec2 (patch) | |
tree | 77256e5edbfeec8061a61395cd8e3a29cd69bce0 /libavutil/error.c | |
parent | a8bdf2405c6027f45a899eaaa6ba74e97c1c2701 (diff) | |
download | ffmpeg-c9bca801324f03746757aef8549ebd26599adec2.tar.gz |
avutil: add AVERROR_UNKNOWN
Useful to return instead of -1 when the cause of the error is unknown,
typically from an external library.
Diffstat (limited to 'libavutil/error.c')
-rw-r--r-- | libavutil/error.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/error.c b/libavutil/error.c index a330e9f99c..21b68762d2 100644 --- a/libavutil/error.c +++ b/libavutil/error.c @@ -39,6 +39,7 @@ int av_strerror(int errnum, char *errbuf, size_t errbuf_size) case AVERROR_PROTOCOL_NOT_FOUND:errstr = "Protocol not found" ; break; case AVERROR_STREAM_NOT_FOUND: errstr = "Stream not found" ; break; case AVERROR_BUG: errstr = "Bug detected, please report the issue" ; break; + case AVERROR_UNKNOWN: errstr = "Unknown error occurred" ; break; } if (errstr) { |