Skip to content
Snippets Groups Projects
Commit ad99837b authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Merge commit '03c9f357'


* commit '03c9f357':
  ppc: idctdsp: Immediately return if no AltiVec is available

Conflicts:
	libavcodec/ppc/idctdsp.c

Merged-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parents 713dbe06 03c9f357
No related branches found
No related tags found
No related merge requests found
...@@ -247,15 +247,16 @@ av_cold void ff_idctdsp_init_ppc(IDCTDSPContext *c, AVCodecContext *avctx, ...@@ -247,15 +247,16 @@ 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 && avctx->lowres == 0) { return;
if ((avctx->idct_algo == FF_IDCT_AUTO && !(avctx->flags & CODEC_FLAG_BITEXACT)) ||
(avctx->idct_algo == FF_IDCT_ALTIVEC)) { if (!high_bit_depth && avctx->lowres == 0) {
c->idct = idct_altivec; if ((avctx->idct_algo == FF_IDCT_AUTO && !(avctx->flags & CODEC_FLAG_BITEXACT)) ||
c->idct_add = idct_add_altivec; (avctx->idct_algo == FF_IDCT_ALTIVEC)) {
c->idct_put = idct_put_altivec; c->idct = 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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment