Commit fd5d2f1b authored by michael's avatar michael

rgb24toyv12 isnt accuratly rounding, so disable it as well when the

user asks for accurate rounding.


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@27585 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 031f9f01
......@@ -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) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment