You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
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 05c4072b45
where it was used for the dct_quantize function only.)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -123,10 +123,7 @@ av_cold void ff_mpv_common_init_ppc(MpegEncContext *s)
|
|||||||
if (!PPC_ALTIVEC(av_get_cpu_flags()))
|
if (!PPC_ALTIVEC(av_get_cpu_flags()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ((s->avctx->dct_algo == FF_DCT_AUTO) ||
|
s->dct_unquantize_h263_intra = dct_unquantize_h263_altivec;
|
||||||
(s->avctx->dct_algo == FF_DCT_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 */
|
#endif /* HAVE_ALTIVEC */
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user