summaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-12 23:52:37 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-12 23:52:37 +0000
commit57db6892cfbcdd1cd460cc5282563b81e8bb1c3c (patch)
treeea4abc37b8e6f1dacae0fc1ae38da974be2aec78 /libswscale/swscale.c
parent68de5a33c96b4ce5e9607548996eda0f6ead11de (diff)
downloadmpv-57db6892cfbcdd1cd460cc5282563b81e8bb1c3c.tar.bz2
mpv-57db6892cfbcdd1cd460cc5282563b81e8bb1c3c.tar.xz
yvu9toyv12Wrapper is not bitexact so disable it when the user wants
bitexactness to C. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27594 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r--libswscale/swscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 81cc945f1a..6285f4f117 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -2172,7 +2172,7 @@ SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, int dstW, int dstH
}
#endif
- if (srcFormat==PIX_FMT_YUV410P && dstFormat==PIX_FMT_YUV420P)
+ if (srcFormat==PIX_FMT_YUV410P && dstFormat==PIX_FMT_YUV420P && !(flags & SWS_BITEXACT))
{
c->swScale= yvu9toyv12Wrapper;
}