1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avcodec/mpegvideo: change asserts to av_asserts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-04-20 21:26:17 +02:00
parent fdad04e756
commit 4824aea7af

View File

@ -1702,7 +1702,7 @@ int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
}
if (s->dct_error_sum) {
assert(s->avctx->noise_reduction && s->encoding);
av_assert2(s->avctx->noise_reduction && s->encoding);
update_noise_reduction(s);
}
@ -3240,7 +3240,7 @@ static void dct_unquantize_h263_intra_c(MpegEncContext *s,
int i, level, qmul, qadd;
int nCoeffs;
assert(s->block_last_index[n]>=0);
av_assert2(s->block_last_index[n]>=0);
qmul = qscale << 1;
@ -3274,7 +3274,7 @@ static void dct_unquantize_h263_inter_c(MpegEncContext *s,
int i, level, qmul, qadd;
int nCoeffs;
assert(s->block_last_index[n]>=0);
av_assert2(s->block_last_index[n]>=0);
qadd = (qscale - 1) | 1;
qmul = qscale << 1;