From b2866b7216cfbc563da3cb695b81095726462d52 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 22 Mar 2025 06:51:28 +0100 Subject: [PATCH] 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 --- 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]]; } {