mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-15 09:27:47 +00:00
PPC: swscale: disable altivec functions for unsupported formats
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
842f463c77
commit
635930d466
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user