Browse code

lavu/error: define AVERROR_BUG.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Nicolas George authored on 2011/12/03 19:21:30
Showing 4 changed files
... ...
@@ -13,6 +13,9 @@ libavutil:   2011-04-18
13 13
 
14 14
 API changes, most recent first:
15 15
 
16
+2011-12-03 - xxxxxxx - lavu 51.30.0
17
+  Add AVERROR_BUG.
18
+
16 19
 2011-xx-xx - xxxxxxx - lavu 51.28.1
17 20
   Add av_get_alt_sample_fmt() to samplefmt.h.
18 21
 
... ...
@@ -153,8 +153,8 @@
153 153
  */
154 154
 
155 155
 #define LIBAVUTIL_VERSION_MAJOR 51
156
-#define LIBAVUTIL_VERSION_MINOR 29
157
-#define LIBAVUTIL_VERSION_MICRO  1
156
+#define LIBAVUTIL_VERSION_MINOR 30
157
+#define LIBAVUTIL_VERSION_MICRO  0
158 158
 
159 159
 #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
160 160
                                                LIBAVUTIL_VERSION_MINOR, \
... ...
@@ -27,6 +27,7 @@ int av_strerror(int errnum, char *errbuf, size_t errbuf_size)
27 27
 
28 28
     switch (errnum) {
29 29
     case AVERROR_BSF_NOT_FOUND:     errstr = "Bitstream filter not found"                   ; break;
30
+    case AVERROR_BUG:               errstr = "Internal bug, should not have happened"       ; break;
30 31
     case AVERROR_DECODER_NOT_FOUND: errstr = "Decoder not found"                            ; break;
31 32
     case AVERROR_DEMUXER_NOT_FOUND: errstr = "Demuxer not found"                            ; break;
32 33
     case AVERROR_ENCODER_NOT_FOUND: errstr = "Encoder not found"                            ; break;
... ...
@@ -45,6 +45,7 @@
45 45
 #endif
46 46
 
47 47
 #define AVERROR_BSF_NOT_FOUND      (-MKTAG(0xF8,'B','S','F')) ///< Bitstream filter not found
48
+#define AVERROR_BUG                (-MKTAG( 'B','U','G','!')) ///< Internal bug
48 49
 #define AVERROR_DECODER_NOT_FOUND  (-MKTAG(0xF8,'D','E','C')) ///< Decoder not found
49 50
 #define AVERROR_DEMUXER_NOT_FOUND  (-MKTAG(0xF8,'D','E','M')) ///< Demuxer not found
50 51
 #define AVERROR_ENCODER_NOT_FOUND  (-MKTAG(0xF8,'E','N','C')) ///< Encoder not found