diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-03-22 07:31:30 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-03-26 04:16:11 +0100 |
commit | 46c5466dd8e987888077b83abcfbb60a6abc43e7 (patch) | |
tree | 3d9c44f6833e92c4ffbb6a848db3768707e9264c | |
parent | b96ba444329816f810eb6f1b8d5afac7e49cf9ff (diff) | |
download | ffmpeg-46c5466dd8e987888077b83abcfbb60a6abc43e7.tar.gz |
avcodec/ppc/mpegvideo_altivec: Don't process unnecessarily many coeffs
Use the same number as the C version.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/ppc/mpegvideo_altivec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/ppc/mpegvideo_altivec.c b/libavcodec/ppc/mpegvideo_altivec.c index 23b7701fd6..7e3db6f76a 100644 --- a/libavcodec/ppc/mpegvideo_altivec.c +++ b/libavcodec/ppc/mpegvideo_altivec.c @@ -57,7 +57,10 @@ static void dct_unquantize_h263_altivec(MpegEncContext *s, }else qadd = 0; i = 1; - nCoeffs= 63; //does not always use zigzag table + if (s->ac_pred) + nCoeffs = 63; + else + nCoeffs = s->intra_scantable.raster_end[s->block_last_index[n]]; } else { i = 0; av_assert2(s->block_last_index[n]>=0); |