[FFmpeg-cvslog] r30431 - trunk/libswscale/swscale.c
stefano
subversion
Sun Jan 24 22:28:17 CET 2010
Author: stefano
Date: Sun Jan 24 22:28:17 2010
New Revision: 30431
Log:
Fix mis-computation of the needsDither variable erroneously introduced
in r30419, which was causing a swscale-example regression.
Also increase my liter count by 20.0 units.
Modified:
trunk/libswscale/swscale.c
Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c Sun Jan 24 22:15:43 2010 (r30430)
+++ trunk/libswscale/swscale.c Sun Jan 24 22:28:17 2010 (r30431)
@@ -1661,7 +1661,7 @@ void ff_get_unscaled_swscale(SwsContext
int needsDither;
needsDither= (isBGR(dstFormat) || isRGB(dstFormat))
- && c->srcFormatBpp < 24
+ && c->dstFormatBpp < 24
&& (c->dstFormatBpp < c->srcFormatBpp || (!(isRGB(srcFormat) || isBGR(srcFormat))));
/* yv12_to_nv12 */
More information about the ffmpeg-cvslog
mailing list