]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dvdsubenc.c
movtextdec: fix return value for too small packets.
[ffmpeg] / libavcodec / dvdsubenc.c
index c7b60542bffe53edd121d562428c00606e4872af..543fe61329d966a4d1a3d9f272775b2ced509388 100644 (file)
@@ -20,9 +20,8 @@
  */
 #include "avcodec.h"
 #include "bytestream.h"
+#include "libavutil/avassert.h"
 
-#undef NDEBUG
-#include <assert.h>
 
 // ncnt is the nibble counter
 #define PUTNIBBLE(val)\
@@ -53,7 +52,7 @@ static void dvd_encode_rle(uint8_t **pq,
                 if (bitmap[x+len] != color)
                     break;
             color = cmap[color];
-            assert(color < 4);
+            av_assert0(color < 4);
             if (len < 0x04) {
                 PUTNIBBLE((len << 2)|color);
             } else if (len < 0x10) {