OSDN Git Service

Fix mis-computation of the needsDither variable erroneously introduced
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 24 Jan 2010 21:28:17 +0000 (21:28 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 24 Jan 2010 21:28:17 +0000 (21:28 +0000)
in r30419, which was causing a swscale-example regression.

Also increase my liter count by 20.0 units.

Originally committed as revision 30431 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale.c

index 7913708..f167629 100644 (file)
@@ -1661,7 +1661,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
     int needsDither;
 
     needsDither= (isBGR(dstFormat) || isRGB(dstFormat))
-        &&  c->srcFormatBpp < 24
+        &&  c->dstFormatBpp < 24
         && (c->dstFormatBpp < c->srcFormatBpp || (!(isRGB(srcFormat) || isBGR(srcFormat))));
 
     /* yv12_to_nv12 */