projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
842f463
)
PPC: swscale: disable altivec functions for unsupported formats
author
Mans Rullgard
<mans@mansr.com>
Tue, 28 Jun 2011 22:19:36 +0000
(23:19 +0100)
committer
Mans Rullgard
<mans@mansr.com>
Tue, 28 Jun 2011 22:22:31 +0000
(23:22 +0100)
Signed-off-by: Mans Rullgard <mans@mansr.com>
libswscale/ppc/swscale_altivec.c
patch
|
blob
|
history
diff --git
a/libswscale/ppc/swscale_altivec.c
b/libswscale/ppc/swscale_altivec.c
index
14f35b6
..
396b00c
100644
(file)
--- 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;
}