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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue