summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-24 21:28:17 +0000
committerstefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-24 21:28:17 +0000
commit196fea8c3bd2a62897b49cb3947b182eaf8e874a (patch)
tree537e1f57211a569264218f500c5f2f91201b08f4
parent0f4d83ce51fc4404381170f3181cd50c7ed917c1 (diff)
downloadmpv-196fea8c3bd2a62897b49cb3947b182eaf8e874a.tar.bz2
mpv-196fea8c3bd2a62897b49cb3947b182eaf8e874a.tar.xz
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
-rw-r--r--libswscale/swscale.c2
1 files changed, 1 insertions, 1 deletions
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 */