summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/hwdec.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-07-07 11:26:30 +0200
committerNiklas Haas <git@haasn.xyz>2017-07-07 11:26:30 +0200
commit9c9d3e7b25c85368f9e8f24d6f5f7f5cc49510e3 (patch)
treef43edda6cc41a905be9681f116b91fbedfb6580f /video/out/opengl/hwdec.c
parent6a59d7342fcce9102da8138e2356cd1f65a9b297 (diff)
downloadmpv-9c9d3e7b25c85368f9e8f24d6f5f7f5cc49510e3.tar.bz2
mpv-9c9d3e7b25c85368f9e8f24d6f5f7f5cc49510e3.tar.xz
vo_opengl: prevent desat from blowing up for negative
The current algorithm blew up when the color was negative, such as the case when downscaling with dscale=mitchell or other algorithms that introduce negative ringing. The simplest solution is to just slightly change the calculation to force both parameters to be in-range.
Diffstat (limited to 'video/out/opengl/hwdec.c')
0 files changed, 0 insertions, 0 deletions