Mercurial > mplayer.hg
diff libswscale/swscale.c @ 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 | 2eea1f09e2c5 |
children | 2a33c1c37e6b |
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 */