diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-30 15:40:48 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-30 16:43:14 +0100 |
commit | 3531594017bdca10f6e33a2afb65c8416d53d75e (patch) | |
tree | b0b95c25fe416a0e78c8b7b75eed2f825dcd8b44 | |
parent | be128c1e34263f18b42d1bcb684ba45bad312d75 (diff) | |
download | ffmpeg-3531594017bdca10f6e33a2afb65c8416d53d75e.tar.gz |
ppc/mpegvideo_altivec: Change assert to av_assert2()
And move it to where the variable is used
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/ppc/mpegvideo_altivec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/ppc/mpegvideo_altivec.c b/libavcodec/ppc/mpegvideo_altivec.c index ce53ae4b61..1b6bda6c36 100644 --- a/libavcodec/ppc/mpegvideo_altivec.c +++ b/libavcodec/ppc/mpegvideo_altivec.c @@ -42,8 +42,6 @@ static void dct_unquantize_h263_altivec(MpegEncContext *s, int i, level, qmul, qadd; int nCoeffs; - assert(s->block_last_index[n]>=0); - qadd = (qscale - 1) | 1; qmul = qscale << 1; @@ -59,6 +57,7 @@ static void dct_unquantize_h263_altivec(MpegEncContext *s, nCoeffs= 63; //does not always use zigzag table } else { i = 0; + av_assert2(s->block_last_index[n]>=0); nCoeffs= s->intra_scantable.raster_end[ s->block_last_index[n] ]; } |