aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-03-22 04:20:14 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-03-26 04:15:46 +0100
commitb96ba444329816f810eb6f1b8d5afac7e49cf9ff (patch)
tree7468a1e4f180d4487cb8e052ad6f400d8bfad3d9
parentb2866b7216cfbc563da3cb695b81095726462d52 (diff)
downloadffmpeg-b96ba444329816f810eb6f1b8d5afac7e49cf9ff.tar.gz
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>
-rw-r--r--libavcodec/ppc/mpegvideo_altivec.c7
1 files 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 */
}