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:
parent
0f4d83ce51
commit
196fea8c3b
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user