diff options
author | Mans Rullgard <mans@mansr.com> | 2011-06-28 23:19:36 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-06-28 23:22:31 +0100 |
commit | 635930d466dd146686e4b6736aab3cab38527df4 (patch) | |
tree | b4adf7d931a1e3ed44f510af039e28c74bcd6539 /libswscale/ppc | |
parent | 842f463c7706671546a637a23ad9639aaac7b969 (diff) | |
download | ffmpeg-635930d466dd146686e4b6736aab3cab38527df4.tar.gz |
PPC: swscale: disable altivec functions for unsupported formats
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libswscale/ppc')
-rw-r--r-- | 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 14f35b64cb..396b00ccc6 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; } |