ppc: idctdsp: Immediately return if no AltiVec is available
This is how all the other init functions operate.
This commit is contained in:
parent
706208ef47
commit
03c9f357a4
@ -231,14 +231,15 @@ av_cold void ff_idctdsp_init_ppc(IDCTDSPContext *c, AVCodecContext *avctx,
|
|||||||
unsigned high_bit_depth)
|
unsigned high_bit_depth)
|
||||||
{
|
{
|
||||||
#if HAVE_ALTIVEC
|
#if HAVE_ALTIVEC
|
||||||
if (PPC_ALTIVEC(av_get_cpu_flags())) {
|
if (!PPC_ALTIVEC(av_get_cpu_flags()))
|
||||||
if (!high_bit_depth) {
|
return;
|
||||||
if ((avctx->idct_algo == FF_IDCT_AUTO) ||
|
|
||||||
(avctx->idct_algo == FF_IDCT_ALTIVEC)) {
|
if (!high_bit_depth) {
|
||||||
c->idct_add = idct_add_altivec;
|
if ((avctx->idct_algo == FF_IDCT_AUTO) ||
|
||||||
c->idct_put = idct_put_altivec;
|
(avctx->idct_algo == FF_IDCT_ALTIVEC)) {
|
||||||
c->perm_type = FF_IDCT_PERM_TRANSPOSE;
|
c->idct_add = idct_add_altivec;
|
||||||
}
|
c->idct_put = idct_put_altivec;
|
||||||
|
c->perm_type = FF_IDCT_PERM_TRANSPOSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* HAVE_ALTIVEC */
|
#endif /* HAVE_ALTIVEC */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user