Commit 4824aea7 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpegvideo: change asserts to av_asserts

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent fdad04e7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment