# HG changeset patch # User michael # Date 1221194451 0 # Node ID be05ce1c011e1ed4dadb25878f49dc06730d3fc6 # Parent 4ff95ffda171a5d7e49d6124a7b68185fdb055a6 rgb24toyv12 is not accurately rounding, so disable it as well when the user asks for accurate rounding. diff -r 4ff95ffda171 -r be05ce1c011e libswscale/swscale.c --- 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) */