[FFmpeg-cvslog] ppc/mpegvideo_altivec: Change assert to av_assert2()
Michael Niedermayer
git at videolan.org
Fri Jan 30 16:44:33 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jan 30 15:40:48 2015 +0100| [3531594017bdca10f6e33a2afb65c8416d53d75e] | committer: Michael Niedermayer
ppc/mpegvideo_altivec: Change assert to av_assert2()
And move it to where the variable is used
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3531594017bdca10f6e33a2afb65c8416d53d75e
---
libavcodec/ppc/mpegvideo_altivec.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavcodec/ppc/mpegvideo_altivec.c b/libavcodec/ppc/mpegvideo_altivec.c
index ce53ae4..1b6bda6 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] ];
}
More information about the ffmpeg-cvslog
mailing list