From 4824aea7afd42ed8bac3e330022f023dd93624fa Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 20 Apr 2013 21:26:17 +0200 Subject: [PATCH] avcodec/mpegvideo: change asserts to av_asserts Signed-off-by: Michael Niedermayer --- libavcodec/mpegvideo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 2969a8c25b..3aa35d5ef3 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -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;