[FFmpeg-cvslog] r27585 - trunk/libswscale/swscale.c

michael subversion
Fri Sep 12 06:40:51 CEST 2008


Author: michael
Date: Fri Sep 12 06:40:51 2008
New Revision: 27585

Log:
rgb24toyv12 isnt accuratly rounding, so disable it as well when the
user asks for accurate rounding.


Modified:
   trunk/libswscale/swscale.c

Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c	(original)
+++ trunk/libswscale/swscale.c	Fri Sep 12 06:40:51 2008
@@ -2173,7 +2173,7 @@ SwsContext *sws_getContext(int srcW, int
         }
 
         /* 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) */




More information about the ffmpeg-cvslog mailing list