[FFmpeg-cvslog] r27584 - trunk/libswscale/swscale.c
michael
subversion
Fri Sep 12 04:05:38 CEST 2008
Author: michael
Date: Fri Sep 12 04:05:37 2008
New Revision: 27584
Log:
Do not use the unscaled yuv->rgb converters if SWS_ACCURATE_RND is set,
because they do not accurately round.
Modified:
trunk/libswscale/swscale.c
Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c (original)
+++ trunk/libswscale/swscale.c Fri Sep 12 04:05:37 2008
@@ -2160,7 +2160,8 @@ SwsContext *sws_getContext(int srcW, int
}
#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);
}
More information about the ffmpeg-cvslog
mailing list