From 18a6f8cc013216ce8e3de3b126e82e2182b1e20e Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Date: Sat, 22 Mar 2025 04:20:14 +0100 Subject: [PATCH 78/81] 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@outlook.com> --- 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 */ } -- 2.45.2