mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
dvdsubenc: switch to av_assert
we use av_assert0() because the previous code unconditionally enabled the assert. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
55cdd45446
commit
0fa352623d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user