Browse code

Add AVERROR_*_NOT_FOUND codes.

Originally committed as revision 26056 to svn://svn.ffmpeg.org/ffmpeg/trunk

Nicolas George authored on 2010/12/19 18:01:02
Showing 4 changed files
... ...
@@ -13,6 +13,17 @@ libavutil:   2009-03-08
13 13
 
14 14
 API changes, most recent first:
15 15
 
16
+2010-12-19 - r26056 - lavutil 50.35.0 - error.h
17
+  Add "not found" error codes:
18
+  AVERROR_DEMUXER_NOT_FOUND
19
+  AVERROR_MUXER_NOT_FOUND
20
+  AVERROR_DECODER_NOT_FOUND
21
+  AVERROR_ENCODER_NOT_FOUND
22
+  AVERROR_PROTOCOL_NOT_FOUND
23
+  AVERROR_FILTER_NOT_FOUND
24
+  AVERROR_BSF_NOT_FOUND
25
+  AVERROR_STREAM_NOT_FOUND
26
+
16 27
 2010-12-09 - r25923 - lavcore 0.16.0 - avcore.h
17 28
   Move AV_NOPTS_VALUE, AV_TIME_BASE, AV_TIME_BASE_Q symbols from
18 29
   avcodec.h to avcore.h.
... ...
@@ -40,7 +40,7 @@
40 40
 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
41 41
 
42 42
 #define LIBAVUTIL_VERSION_MAJOR 50
43
-#define LIBAVUTIL_VERSION_MINOR 34
43
+#define LIBAVUTIL_VERSION_MINOR 35
44 44
 #define LIBAVUTIL_VERSION_MICRO  0
45 45
 
46 46
 #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
... ...
@@ -29,6 +29,14 @@ int av_strerror(int errnum, char *errbuf, size_t errbuf_size)
29 29
     case AVERROR_INVALIDDATA:       errstr = "Invalid data found when processing input"; break;
30 30
     case AVERROR_NUMEXPECTED:       errstr = "Number syntax expected in filename"; break;
31 31
     case AVERROR_PATCHWELCOME:      errstr = "Not yet implemented in FFmpeg, patches welcome"; break;
32
+    case AVERROR_DEMUXER_NOT_FOUND: errstr = "Demuxer not found"; break;
33
+    case AVERROR_MUXER_NOT_FOUND:   errstr = "Muxer not found"; break;
34
+    case AVERROR_DECODER_NOT_FOUND: errstr = "Decoder not found"; break;
35
+    case AVERROR_ENCODER_NOT_FOUND: errstr = "Encoder not found"; break;
36
+    case AVERROR_PROTOCOL_NOT_FOUND:errstr = "Protocol not found"; break;
37
+    case AVERROR_FILTER_NOT_FOUND:  errstr = "Filter not found"; break;
38
+    case AVERROR_BSF_NOT_FOUND:     errstr = "Bitstream filter not found"; break;
39
+    case AVERROR_STREAM_NOT_FOUND:  errstr = "Stream not found"; break;
32 40
     }
33 41
 
34 42
     if (errstr) {
... ...
@@ -57,6 +57,15 @@
57 57
 #define AVERROR_NUMEXPECTED     (-MKTAG('N','U','E','X')) ///< Number syntax expected in filename
58 58
 #endif
59 59
 
60
+#define AVERROR_DEMUXER_NOT_FOUND  (-MKTAG(0xF8,'D','E','M')) ///< Demuxer not found
61
+#define AVERROR_MUXER_NOT_FOUND    (-MKTAG(0xF8,'M','U','X')) ///< Muxer not found
62
+#define AVERROR_DECODER_NOT_FOUND  (-MKTAG(0xF8,'D','E','C')) ///< Decoder not found
63
+#define AVERROR_ENCODER_NOT_FOUND  (-MKTAG(0xF8,'E','N','C')) ///< Encoder not found
64
+#define AVERROR_PROTOCOL_NOT_FOUND (-MKTAG(0xF8,'P','R','O')) ///< Protocol not found
65
+#define AVERROR_FILTER_NOT_FOUND   (-MKTAG(0xF8,'F','I','L')) ///< Filter not found
66
+#define AVERROR_BSF_NOT_FOUND      (-MKTAG(0xF8,'B','S','F')) ///< Bitstream filter not found
67
+#define AVERROR_STREAM_NOT_FOUND   (-MKTAG(0xF8,'S','T','R')) ///< Stream not found
68
+
60 69
 /**
61 70
  * Put a description of the AVERROR code errnum in errbuf.
62 71
  * In case of failure the global variable errno is set to indicate the