summaryrefslogtreecommitdiff
path: root/libavcodec/4xm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-11 21:40:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-11 21:40:43 +0200
commit7925f923a5a31ad8d0d91a95eb36e60b0fe1f35d (patch)
tree600f8f330285c39d00422641f89558315ea2aebc /libavcodec/4xm.c
parent3827a86eacd04d9d7b356f769be553f7b8cca361 (diff)
4xm: use av_assert()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/4xm.c')
-rw-r--r--libavcodec/4xm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index e186870590..05669c4221 100644
--- a/libavcodec/4xm.c
+++ b/libavcodec/4xm.c
@@ -30,8 +30,7 @@
#include "dsputil.h"
#include "get_bits.h"
-//#undef NDEBUG
-//#include <assert.h>
+#include "libavutil/avassert.h"
#define BLOCK_TYPE_VLC_BITS 5
#define ACDC_VLC_BITS 9
@@ -328,7 +327,7 @@ static inline void mcdc(uint16_t *dst, const uint16_t *src, int log2w,
}
break;
default:
- assert(0);
+ av_assert2(0);
}
}
@@ -343,7 +342,7 @@ static void decode_p_block(FourXContext *f, uint16_t *dst, uint16_t *src,
uint16_t *start = (uint16_t *)f->last_picture.data[0];
uint16_t *end = start + stride * (f->avctx->height - h + 1) - (1 << log2w);
- assert(code >= 0 && code <= 6);
+ av_assert2(code >= 0 && code <= 6);
if (code == 0) {
if (f->g.buffer_end - f->g.buffer < 1) {