diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-09-12 04:40:51 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-09-12 04:40:51 +0000 |
commit | 0885770455c32180001b2ce05d181abe8deaf06d (patch) | |
tree | 9ba1b083692ce70f77b23efa2f8485893073f947 | |
parent | 4155ece530ce66f46f2044a3556cfdaac690fafa (diff) | |
download | ffmpeg-0885770455c32180001b2ce05d181abe8deaf06d.tar.gz |
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
-rw-r--r-- | libswscale/swscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) */ |