From 0885770455c32180001b2ce05d181abe8deaf06d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 12 Sep 2008 04:40:51 +0000 Subject: [PATCH] rgb24toyv12 isnt accuratly rounding, so disable it as well when the user asks for accurate rounding. Originally committed as revision 27585 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 9dcb6f93e4..ff4738a1c6 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -2173,7 +2173,7 @@ SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, int dstW, int dstH } /* 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) */