Mercurial > libavcodec.hg
diff ppc/mpegvideo_ppc.c @ 2778:4c0ab7ed2642 libavcodec
Disable AltiVec IDCT for lowres decoding in lavc patch by (Sigbjrn Skjret: cisc, broadpark no)
author | michael |
---|---|
date | Fri, 01 Jul 2005 09:37:35 +0000 |
parents | 9241d99f7443 |
children | ef2149182f1c |
line wrap: on
line diff
--- a/ppc/mpegvideo_ppc.c Wed Jun 29 08:41:01 2005 +0000 +++ b/ppc/mpegvideo_ppc.c Fri Jul 01 09:37:35 2005 +0000 @@ -39,6 +39,8 @@ #ifdef HAVE_ALTIVEC if (has_altivec()) { + if (s->avctx->lowres==0) + { if ((s->avctx->idct_algo == FF_IDCT_AUTO) || (s->avctx->idct_algo == FF_IDCT_ALTIVEC)) { @@ -50,6 +52,7 @@ s->dsp.idct_permutation_type = FF_NO_IDCT_PERM; #endif /* ALTIVEC_USE_REFERENCE_C_CODE */ } + } // Test to make sure that the dct required alignments are met. if ((((long)(s->q_intra_matrix) & 0x0f) != 0) ||