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.

Originally committed as revision 30431 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
release/0.6
Stefano Sabatini 15 years ago
parent 996b099a0f
commit aa2ead8215
  1. 2
      libswscale/swscale.c

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

Loading…
Cancel
Save