diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-02-14 16:37:39 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-02-14 16:37:39 +0000 |
commit | 12794f73eb8ef5307d1d72a36f04cc55252503f0 (patch) | |
tree | ea03b0e712a23fca142f366be568e609145d9bbf /libswscale/swscale.c | |
parent | 24d54e9ebb0e3cf5459445d06f13818976e0a295 (diff) |
Some AltiVec functions in SwScaler produce different output than their
counterparts in pure C, so don't invoke them in bitexact mode.
Originally committed as revision 28555 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 586715eacd..a38c14d9a8 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -2396,6 +2396,7 @@ SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int d #ifdef COMPILE_ALTIVEC if ((c->flags & SWS_CPU_CAPS_ALTIVEC) && + !(c->flags & SWS_BITEXACT) && srcFormat == PIX_FMT_YUV420P) { // unscaled YV12 -> packed YUV, we want speed if (dstFormat == PIX_FMT_YUYV422) |