changeset 30389:da75265e5b6f

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.
author stefano
date Sun, 24 Jan 2010 21:28:17 +0000
parents 45dcf93d41fa
children e1326b55f7f9
files libswscale/swscale.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Sun Jan 24 21:15:43 2010 +0000
+++ b/libswscale/swscale.c	Sun Jan 24 21:28:17 2010 +0000
@@ -1661,7 +1661,7 @@
     int needsDither;
 
     needsDither= (isBGR(dstFormat) || isRGB(dstFormat))
-        &&  c->srcFormatBpp < 24
+        &&  c->dstFormatBpp < 24
         && (c->dstFormatBpp < c->srcFormatBpp || (!(isRGB(srcFormat) || isBGR(srcFormat))));
 
     /* yv12_to_nv12 */