1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 09:02:38 +00:00

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
This commit is contained in:
stefano 2010-01-24 21:28:17 +00:00
parent 0f4d83ce51
commit 196fea8c3b

View File

@ -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 */