[FFmpeg-cvslog] PPC: swscale: disable altivec functions for unsupported formats

Mans Rullgard git at videolan.org
Wed Jun 29 05:26:36 CEST 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Tue Jun 28 23:19:36 2011 +0100| [635930d466dd146686e4b6736aab3cab38527df4] | committer: Mans Rullgard

PPC: swscale: disable altivec functions for unsupported formats

Signed-off-by: Mans Rullgard <mans at mansr.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=635930d466dd146686e4b6736aab3cab38527df4
---

 libswscale/ppc/swscale_altivec.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/libswscale/ppc/swscale_altivec.c b/libswscale/ppc/swscale_altivec.c
index 14f35b6..396b00c 100644
--- a/libswscale/ppc/swscale_altivec.c
+++ b/libswscale/ppc/swscale_altivec.c
@@ -407,7 +407,9 @@ void ff_sws_init_swScale_altivec(SwsContext *c)
         return;
 
     c->hScale       = hScale_altivec_real;
-    if (!is16BPS(dstFormat) && !is9_OR_10BPS(dstFormat)) {
+    if (!is16BPS(dstFormat) && !is9_OR_10BPS(dstFormat) &&
+        dstFormat != PIX_FMT_NV12 && dstFormat != PIX_FMT_NV21 &&
+        !c->alpPixBuf) {
         c->yuv2yuvX     = yuv2yuvX_altivec_real;
     }
 



More information about the ffmpeg-cvslog mailing list