Commit 0fa35262 authored by Michael Niedermayer's avatar Michael Niedermayer

dvdsubenc: switch to av_assert

we use av_assert0() because the previous code unconditionally
enabled the assert.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 55cdd454
...@@ -20,9 +20,8 @@ ...@@ -20,9 +20,8 @@
*/ */
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "libavutil/avassert.h"
#undef NDEBUG
#include <assert.h>
// ncnt is the nibble counter // ncnt is the nibble counter
#define PUTNIBBLE(val)\ #define PUTNIBBLE(val)\
...@@ -53,7 +52,7 @@ static void dvd_encode_rle(uint8_t **pq, ...@@ -53,7 +52,7 @@ static void dvd_encode_rle(uint8_t **pq,
if (bitmap[x+len] != color) if (bitmap[x+len] != color)
break; break;
color = cmap[color]; color = cmap[color];
assert(color < 4); av_assert0(color < 4);
if (len < 0x04) { if (len < 0x04) {
PUTNIBBLE((len << 2)|color); PUTNIBBLE((len << 2)|color);
} else if (len < 0x10) { } else if (len < 0x10) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment