summaryrefslogtreecommitdiff
path: root/libavutil/error.h
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.h
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.h')
-rw-r--r--libavutil/error.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/error.h b/libavutil/error.h
index 33332b18c4..23e0b01789 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -48,6 +48,7 @@
#define AVERROR_MUXER_NOT_FOUND (-MKTAG(0xF8,'M','U','X')) ///< Muxer not found
#define AVERROR_DECODER_NOT_FOUND (-MKTAG(0xF8,'D','E','C')) ///< Decoder not found
#define AVERROR_ENCODER_NOT_FOUND (-MKTAG(0xF8,'E','N','C')) ///< Encoder not found
+#define AVERROR_OPTION_NOT_FOUND (-MKTAG(0xF8,'O','P','T')) ///< Option not found
#define AVERROR_PROTOCOL_NOT_FOUND (-MKTAG(0xF8,'P','R','O')) ///< Protocol not found
#define AVERROR_FILTER_NOT_FOUND (-MKTAG(0xF8,'F','I','L')) ///< Filter not found
#define AVERROR_BSF_NOT_FOUND (-MKTAG(0xF8,'B','S','F')) ///< Bitstream filter not found