changeset 27553:be05ce1c011e

rgb24toyv12 is not accurately rounding, so disable it as well when the user asks for accurate rounding.
author michael
date Fri, 12 Sep 2008 04:40:51 +0000
parents 4ff95ffda171
children 021a1889cc26
files libswscale/swscale.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Fri Sep 12 02:05:37 2008 +0000
+++ b/libswscale/swscale.c	Fri Sep 12 04:40:51 2008 +0000
@@ -2173,7 +2173,7 @@
         }
 
         /* bgr24toYV12 */
-        if (srcFormat==PIX_FMT_BGR24 && dstFormat==PIX_FMT_YUV420P)
+        if (srcFormat==PIX_FMT_BGR24 && dstFormat==PIX_FMT_YUV420P && !(flags & SWS_ACCURATE_RND))
             c->swScale= bgr24toyv12Wrapper;
 
         /* rgb/bgr -> rgb/bgr (no dither needed forms) */