diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-24 21:28:17 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-24 21:28:17 +0000 |
commit | aa2ead8215242c958640a96bf8f9ad2d3535ad92 (patch) | |
tree | f6374b11dd740dc834d5b91f52b0877af378d7f8 /libswscale | |
parent | 996b099a0f63dcd5faba5201487c0788a252dc85 (diff) | |
download | ffmpeg-aa2ead8215242c958640a96bf8f9ad2d3535ad92.tar.gz |
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
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale.c | 2 |
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 */ |