x86/mpegvideoenc_template: use av_assert
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 23 Nov 2012 16:57:22 +0000 (17:57 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 23 Nov 2012 16:57:22 +0000 (17:57 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/x86/mpegvideoenc_template.c

index d874f39..47c3b43 100644 (file)
@@ -100,7 +100,7 @@ static int RENAME(dct_quantize)(MpegEncContext *s,
     const uint16_t *qmat, *bias;
     LOCAL_ALIGNED_16(int16_t, temp_block, [64]);
 
     const uint16_t *qmat, *bias;
     LOCAL_ALIGNED_16(int16_t, temp_block, [64]);
 
-    assert((7&(int)(&temp_block[0])) == 0); //did gcc align it correctly?
+    av_assert2((7&(int)(&temp_block[0])) == 0); //did gcc align it correctly?
 
     //s->fdct (block);
     RENAMEl(ff_fdct) (block); //cannot be anything else ...
 
     //s->fdct (block);
     RENAMEl(ff_fdct) (block); //cannot be anything else ...