mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-23 23:40:15 +01:00
avutil: add AVERROR_UNKNOWN
Useful to return instead of -1 when the cause of the error is unknown,
typically from an external library.
(cherry picked from commit c9bca80132)
Conflicts:
doc/APIchanges
libavutil/avutil.h
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
This commit is contained in:
committed by
Reinhard Tartler
parent
750f5baf30
commit
7f3f85544c
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user