diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-15 16:37:58 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-15 17:25:42 +0200 |
commit | 4a6b8289e64645a55411005aba21435fd09ab24b (patch) | |
tree | 704718fdbfaf14a7af050c1eeb3badd2ffd636a8 /libavcodec | |
parent | 95418634b1e8ff5167952727c1f26ae4d4d6d797 (diff) | |
download | ffmpeg-4a6b8289e64645a55411005aba21435fd09ab24b.tar.gz |
avcodec/mips/mpegvideo_mmi: Use av_assert2()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mips/mpegvideo_mmi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/mips/mpegvideo_mmi.c b/libavcodec/mips/mpegvideo_mmi.c index b3d58bd32c..c8b1e168dd 100644 --- a/libavcodec/mips/mpegvideo_mmi.c +++ b/libavcodec/mips/mpegvideo_mmi.c @@ -30,7 +30,7 @@ void ff_dct_unquantize_h263_intra_mmi(MpegEncContext *s, int16_t *block, int64_t level, qmul, qadd, nCoeffs; qmul = qscale << 1; - assert(s->block_last_index[n]>=0 || s->h263_aic); + av_assert2(s->block_last_index[n]>=0 || s->h263_aic); if (!s->h263_aic) { if (n<4) @@ -103,7 +103,7 @@ void ff_dct_unquantize_h263_inter_mmi(MpegEncContext *s, int16_t *block, qmul = qscale << 1; qadd = (qscale - 1) | 1; - assert(s->block_last_index[n]>=0 || s->h263_aic); + av_assert2(s->block_last_index[n]>=0 || s->h263_aic); nCoeffs = s->inter_scantable.raster_end[s->block_last_index[n]]; __asm__ volatile ( @@ -159,7 +159,7 @@ void ff_dct_unquantize_mpeg1_intra_mmi(MpegEncContext *s, int16_t *block, const uint16_t *quant_matrix; int block0; - assert(s->block_last_index[n]>=0); + av_assert2(s->block_last_index[n]>=0); nCoeffs = s->intra_scantable.raster_end[s->block_last_index[n]] + 1; if (n<4) @@ -236,7 +236,7 @@ void ff_dct_unquantize_mpeg1_inter_mmi(MpegEncContext *s, int16_t *block, int64_t nCoeffs; const uint16_t *quant_matrix; - assert(s->block_last_index[n] >= 0); + av_assert2(s->block_last_index[n] >= 0); nCoeffs = s->intra_scantable.raster_end[s->block_last_index[n]] + 1; quant_matrix = s->inter_matrix; |