summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-07-12 19:08:58 +0200
committerNiklas Haas <git@haasn.xyz>2017-07-12 19:08:58 +0200
commit18c74f7dfe9cbefe9de818caa00c3f77ce600f71 (patch)
tree2e73a2686a0fd1fadb7f45740c191741b1e4372c /video/out/opengl/video.c
parente18656732995f235516f49a88bd0d6e0e7d3fc7e (diff)
downloadmpv-18c74f7dfe9cbefe9de818caa00c3f77ce600f71.tar.bz2
mpv-18c74f7dfe9cbefe9de818caa00c3f77ce600f71.tar.xz
vo_opengl: generalize --scale-clamp etc.
This can help fight ringing without completely killing it, thus providing a middle-ground between ringing and aliasing.
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r--video/out/opengl/video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index 8f65b555c8..50e70ce08f 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -333,7 +333,7 @@ static int validate_window_opt(struct mp_log *log, const m_option_t *opt,
OPT_FLOAT(n"-wparam", scaler[i].window.params[0], 0), \
OPT_FLOAT(n"-wblur", scaler[i].window.blur, 0), \
OPT_FLOATRANGE(n"-wtaper", scaler[i].window.taper, 0, 0.0, 1.0), \
- OPT_FLAG(n"-clamp", scaler[i].clamp, 0), \
+ OPT_FLOATRANGE(n"-clamp", scaler[i].clamp, 0, 0.0, 1.0), \
OPT_FLOATRANGE(n"-radius", scaler[i].radius, 0, 0.5, 16.0), \
OPT_FLOATRANGE(n"-antiring", scaler[i].antiring, 0, 0.0, 1.0), \
OPT_STRING_VALIDATE(n"-window", scaler[i].window.name, 0, validate_window_opt)