mirror of
https://github.com/mpv-player/mpv
synced 2025-01-12 09:59:44 +00:00
Do not use the unscaled yuv->rgb converters if SWS_ACCURATE_RND is set,
because they do not accurately round. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27584 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fa93e449fc
commit
cc3ec5b4f2
@ -2160,7 +2160,8 @@ SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, int dstW, int dstH
|
||||
}
|
||||
#ifdef CONFIG_GPL
|
||||
/* yuv2bgr */
|
||||
if ((srcFormat==PIX_FMT_YUV420P || srcFormat==PIX_FMT_YUV422P) && (isBGR(dstFormat) || isRGB(dstFormat)))
|
||||
if ((srcFormat==PIX_FMT_YUV420P || srcFormat==PIX_FMT_YUV422P) && (isBGR(dstFormat) || isRGB(dstFormat))
|
||||
&& !(flags & SWS_ACCURATE_RND))
|
||||
{
|
||||
c->swScale= yuv2rgb_get_func_ptr(c);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user