lavu/error: define AVERROR_BUG.
authorNicolas George <nicolas.george@normalesup.org>
Sat, 3 Dec 2011 10:21:30 +0000 (11:21 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 3 Dec 2011 14:18:58 +0000 (15:18 +0100)
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
doc/APIchanges
libavutil/avutil.h
libavutil/error.c
libavutil/error.h

index 23e5689..6f7d46d 100644 (file)
@@ -13,6 +13,9 @@ libavutil:   2011-04-18
 
 API changes, most recent first:
 
+2011-12-03 - xxxxxxx - lavu 51.30.0
+  Add AVERROR_BUG.
+
 2011-xx-xx - xxxxxxx - lavu 51.28.1
   Add av_get_alt_sample_fmt() to samplefmt.h.
 
index 85c7dbd..af43cc5 100644 (file)
  */
 
 #define LIBAVUTIL_VERSION_MAJOR 51
-#define LIBAVUTIL_VERSION_MINOR 29
-#define LIBAVUTIL_VERSION_MICRO  1
+#define LIBAVUTIL_VERSION_MINOR 30
+#define LIBAVUTIL_VERSION_MICRO  0
 
 #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
                                                LIBAVUTIL_VERSION_MINOR, \
index d296395..4220aa6 100644 (file)
@@ -27,6 +27,7 @@ int av_strerror(int errnum, char *errbuf, size_t errbuf_size)
 
     switch (errnum) {
     case AVERROR_BSF_NOT_FOUND:     errstr = "Bitstream filter not found"                   ; break;
+    case AVERROR_BUG:               errstr = "Internal bug, should not have happened"       ; break;
     case AVERROR_DECODER_NOT_FOUND: errstr = "Decoder not found"                            ; break;
     case AVERROR_DEMUXER_NOT_FOUND: errstr = "Demuxer not found"                            ; break;
     case AVERROR_ENCODER_NOT_FOUND: errstr = "Encoder not found"                            ; break;
index fa18afc..d3c1465 100644 (file)
@@ -45,6 +45,7 @@
 #endif
 
 #define AVERROR_BSF_NOT_FOUND      (-MKTAG(0xF8,'B','S','F')) ///< Bitstream filter not found
+#define AVERROR_BUG                (-MKTAG( 'B','U','G','!')) ///< Internal bug
 #define AVERROR_DECODER_NOT_FOUND  (-MKTAG(0xF8,'D','E','C')) ///< Decoder not found
 #define AVERROR_DEMUXER_NOT_FOUND  (-MKTAG(0xF8,'D','E','M')) ///< Demuxer not found
 #define AVERROR_ENCODER_NOT_FOUND  (-MKTAG(0xF8,'E','N','C')) ///< Encoder not found