changeset 27562:dec58ca745b2

yvu9toyv12Wrapper is not bitexact so disable it when the user wants bitexactness to C.
author michael
date Fri, 12 Sep 2008 23:52:37 +0000
parents 5e35ed8ae2a3
children 39c8d234b98e
files libswscale/swscale.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Fri Sep 12 22:29:21 2008 +0000
+++ b/libswscale/swscale.c	Fri Sep 12 23:52:37 2008 +0000
@@ -2172,7 +2172,7 @@
         }
 #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;
         }