[FFmpeg-cvslog] avcodec/ppc/mpegvideo_altivec: Set unquantize functions unconditionally

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


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Mar 22 04:20:14 2025 +0100| [b96ba444329816f810eb6f1b8d5afac7e49cf9ff] | committer: Andreas Rheinhardt

avcodec/ppc/mpegvideo_altivec: Set unquantize functions unconditionally

Don't do it depending upon dct_algo, as this is not supposed
to influence the unquantize function selection.
(This check originated in 05c4072b45f3cde1185de6eccfe7febf91d9f8fd
where it was used for the dct_quantize function only.)

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

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

 libavcodec/ppc/mpegvideo_altivec.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/libavcodec/ppc/mpegvideo_altivec.c b/libavcodec/ppc/mpegvideo_altivec.c
index 6006d0484d..23b7701fd6 100644
--- a/libavcodec/ppc/mpegvideo_altivec.c
+++ b/libavcodec/ppc/mpegvideo_altivec.c
@@ -123,10 +123,7 @@ av_cold void ff_mpv_common_init_ppc(MpegEncContext *s)
     if (!PPC_ALTIVEC(av_get_cpu_flags()))
         return;
 
-    if ((s->avctx->dct_algo == FF_DCT_AUTO) ||
-        (s->avctx->dct_algo == FF_DCT_ALTIVEC)) {
-        s->dct_unquantize_h263_intra = dct_unquantize_h263_altivec;
-        s->dct_unquantize_h263_inter = dct_unquantize_h263_altivec;
-    }
+    s->dct_unquantize_h263_intra = dct_unquantize_h263_altivec;
+    s->dct_unquantize_h263_inter = dct_unquantize_h263_altivec;
 #endif /* HAVE_ALTIVEC */
 }



More information about the ffmpeg-cvslog mailing list