From 84c125351391b2d0d74f98fb18bd60f15a665c00 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Fri, 12 Sep 2008 23:52:37 +0000
Subject: [PATCH] yvu9toyv12Wrapper is not bitexact so disable it when the user
 wants bitexactness to C.

Originally committed as revision 27594 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
---
 libswscale/swscale.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 81cc945f1a0..6285f4f117d 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;
         }
-- 
GitLab