diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-11 00:52:04 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-21 07:10:16 +0200 |
commit | 58f8463947e56dc448baeeabd7875ea90bdb4a98 (patch) | |
tree | f78a93a91907481edf977ce14e42bb058ffa9272 /libavutil/error.c | |
parent | f83acb096c0ea1ec181941c141d1ab6fb24820eb (diff) | |
download | ffmpeg-58f8463947e56dc448baeeabd7875ea90bdb4a98.tar.gz |
error: add error code AVERROR_OPTION_NOT_FOUND, and use it in opt.c
The new error code is better than AVERROR(ENOENT), which has a
completely different semantics ("No such file or directory").
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
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 978e5431e9..3c3f03fe9b 100644 --- a/libavutil/error.c +++ b/libavutil/error.c @@ -33,6 +33,7 @@ int av_strerror(int errnum, char *errbuf, size_t errbuf_size) case AVERROR_MUXER_NOT_FOUND: errstr = "Muxer not found"; break; case AVERROR_DECODER_NOT_FOUND: errstr = "Decoder not found"; break; case AVERROR_ENCODER_NOT_FOUND: errstr = "Encoder not found"; break; + case AVERROR_OPTION_NOT_FOUND: errstr = "Option not found"; break; case AVERROR_PROTOCOL_NOT_FOUND:errstr = "Protocol not found"; break; case AVERROR_FILTER_NOT_FOUND: errstr = "Filter not found"; break; case AVERROR_BSF_NOT_FOUND: errstr = "Bitstream filter not found"; break; |