summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-19 16:44:28 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-19 17:13:45 +0200
commit82ac6a66f986e3a391e07de50372b88edff0e191 (patch)
tree6f3a52172f1b808a6977d0c3d2a00b20923c5ccf
parentdb142a839520a57e049dd8d6f86bf02807ea9081 (diff)
rv40dsp: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/rv40dsp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/rv40dsp.c b/libavcodec/rv40dsp.c
index 8ba10beac8..2a39686dcd 100644
--- a/libavcodec/rv40dsp.c
+++ b/libavcodec/rv40dsp.c
@@ -27,6 +27,7 @@
#include "avcodec.h"
#include "dsputil.h"
#include "rv34dsp.h"
+#include "libavutil/avassert.h"
#define RV40_LOWPASS(OPNAME, OP) \
static av_unused void OPNAME ## rv40_qpel8_h_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride,\
@@ -205,7 +206,7 @@ static void OPNAME ## rv40_chroma_mc4_c(uint8_t *dst/*align 8*/, uint8_t *src/*a
int i;\
int bias = rv40_bias[y>>1][x>>1];\
\
- assert(x<8 && y<8 && x>=0 && y>=0);\
+ av_assert2(x<8 && y<8 && x>=0 && y>=0);\
\
if(D){\
for(i = 0; i < h; i++){\
@@ -238,7 +239,7 @@ static void OPNAME ## rv40_chroma_mc8_c(uint8_t *dst/*align 8*/, uint8_t *src/*a
int i;\
int bias = rv40_bias[y>>1][x>>1];\
\
- assert(x<8 && y<8 && x>=0 && y>=0);\
+ av_assert2(x<8 && y<8 && x>=0 && y>=0);\
\
if(D){\
for(i = 0; i < h; i++){\