diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-09 04:07:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-09 04:07:30 +0200 |
commit | 72c2d8a346921e308673952b407144635c9d12b1 (patch) | |
tree | 200d0f002c9686a2df7e1c116cd73d7a64ddc893 /libavcodec/dsputil.c | |
parent | 8da7907a4a89f7236342124d7cd3b97f53733039 (diff) | |
download | ffmpeg-streaming-72c2d8a346921e308673952b407144635c9d12b1.zip ffmpeg-streaming-72c2d8a346921e308673952b407144635c9d12b1.tar.gz |
dsputil: convert asserts to av_asserts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r-- | libavcodec/dsputil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index af939b1..45db8c4 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -1812,7 +1812,7 @@ static int try_8x8basis_c(int16_t rem[64], int16_t weight[64], int16_t basis[64] int b= rem[i] + ((basis[i]*scale + (1<<(BASIS_SHIFT - RECON_SHIFT-1)))>>(BASIS_SHIFT - RECON_SHIFT)); int w= weight[i]; b>>= RECON_SHIFT; - assert(-512<b && b<512); + av_assert2(-512<b && b<512); sum += (w*b)*(w*b)>>4; } @@ -2315,7 +2315,7 @@ static int rd8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int level= temp[i] + 64; - assert(level - 64); + av_assert2(level - 64); if((level&(~127)) == 0){ bits+= last_length[UNI_AC_ENC_INDEX(run, level)]; @@ -2386,7 +2386,7 @@ static int bit8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, in level= temp[i] + 64; - assert(level - 64); + av_assert2(level - 64); if((level&(~127)) == 0){ bits+= last_length[UNI_AC_ENC_INDEX(run, level)]; |