[FFmpeg-cvslog] avcodec/ppc/mpegvideo_altivec: Use correct inter scantable

Andreas Rheinhardt git at videolan.org
Wed Mar 26 06:11:15 EET 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Mar 22 06:51:28 2025 +0100| [b2866b7216cfbc563da3cb695b81095726462d52] | committer: Andreas Rheinhardt

avcodec/ppc/mpegvideo_altivec: Use correct inter scantable

This affected the WMV1/2 encoders (but not when running FATE because
the encoding part uses the fastint dct, so this code isn't used
then anyway).

It did not affect anything else, because a) only WMV1/2 use different
scantables, b) ff_msmpeg4_decode_block() (and therefore the WMV1
decoder) already unquantize inter macroblocks as they are parsed
c) the WMV2 decoder does not use the unquantize functions for inter
macroblocks at all.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b2866b7216cfbc563da3cb695b81095726462d52
---

 libavcodec/ppc/mpegvideo_altivec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/ppc/mpegvideo_altivec.c b/libavcodec/ppc/mpegvideo_altivec.c
index c361ca7857..6006d0484d 100644
--- a/libavcodec/ppc/mpegvideo_altivec.c
+++ b/libavcodec/ppc/mpegvideo_altivec.c
@@ -61,7 +61,7 @@ static void dct_unquantize_h263_altivec(MpegEncContext *s,
     } else {
         i = 0;
         av_assert2(s->block_last_index[n]>=0);
-        nCoeffs= s->intra_scantable.raster_end[ s->block_last_index[n] ];
+        nCoeffs = s->inter_scantable.raster_end[s->block_last_index[n]];
     }
 
     {



More information about the ffmpeg-cvslog mailing list