mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-19 09:02:26 +02:00
don't call altivec_yuv2packedX() with a dstFormat that it doesn't support;
instead fall back on yuv2packedXinC Originally committed as revision 17642 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
This commit is contained in:
parent
8cecedfbe8
commit
b9a6fae930
@ -967,14 +967,19 @@ static inline void RENAME(yuv2packedX)(SwsContext *c, int16_t *lumFilter, int16_
|
|||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
#ifdef HAVE_ALTIVEC
|
#ifdef HAVE_ALTIVEC
|
||||||
|
/* The following list of supported dstFormat values should
|
||||||
|
match what's found in the body of altivec_yuv2packedX() */
|
||||||
|
if(c->dstFormat==IMGFMT_ABGR || c->dstFormat==IMGFMT_BGRA ||
|
||||||
|
c->dstFormat==IMGFMT_BGR24 || c->dstFormat==IMGFMT_RGB24 ||
|
||||||
|
c->dstFormat==IMGFMT_RGBA || c->dstFormat==IMGFMT_ARGB)
|
||||||
altivec_yuv2packedX (c, lumFilter, lumSrc, lumFilterSize,
|
altivec_yuv2packedX (c, lumFilter, lumSrc, lumFilterSize,
|
||||||
chrFilter, chrSrc, chrFilterSize,
|
chrFilter, chrSrc, chrFilterSize,
|
||||||
dest, dstW, dstY);
|
dest, dstW, dstY);
|
||||||
#else
|
else
|
||||||
|
#endif
|
||||||
yuv2packedXinC(c, lumFilter, lumSrc, lumFilterSize,
|
yuv2packedXinC(c, lumFilter, lumSrc, lumFilterSize,
|
||||||
chrFilter, chrSrc, chrFilterSize,
|
chrFilter, chrSrc, chrFilterSize,
|
||||||
dest, dstW, dstY);
|
dest, dstW, dstY);
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user