video/sws_utils: limit sws-cvs and sws-chs to [-100, 100]

Makes no sense to create filters with some huge offsets.
This commit is contained in:
Kacper Michajłow committed 2025-04-08 22:24:47 +02:00
1 parent 1bd6e28780
commit 5bc5489e56
1 file changed
+2 -2
+2 -2
View File
@@ -73,8 +73,8 @@ const struct m_sub_options sws_conf = {
{"spline", SWS_SPLINE})},
{"lgb", OPT_FLOAT(lum_gblur), M_RANGE(0, 100.0)},
{"cgb", OPT_FLOAT(chr_gblur), M_RANGE(0, 100.0)},
{"cvs", OPT_INT(chr_vshift)},
{"chs", OPT_INT(chr_hshift)},
{"cvs", OPT_INT(chr_vshift), M_RANGE(-100, 100)},
{"chs", OPT_INT(chr_hshift), M_RANGE(-100, 100)},
{"ls", OPT_FLOAT(lum_sharpen), M_RANGE(-100.0, 100.0)},
{"cs", OPT_FLOAT(chr_sharpen), M_RANGE(-100.0, 100.0)},
{"fast", OPT_BOOL(fast)},