summaryrefslogtreecommitdiff
path: root/libavutil/error.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-11 00:52:04 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-21 07:10:16 +0200
commit58f8463947e56dc448baeeabd7875ea90bdb4a98 (patch)
treef78a93a91907481edf977ce14e42bb058ffa9272 /libavutil/error.c
parentf83acb096c0ea1ec181941c141d1ab6fb24820eb (diff)
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.c1
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;