From 196fea8c3bd2a62897b49cb3947b182eaf8e874a Mon Sep 17 00:00:00 2001 From: stefano Date: Sun, 24 Jan 2010 21:28:17 +0000 Subject: 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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30431 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/swscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 79137088bd..f167629b65 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -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 */ -- cgit v1.2.3