From 5bc5489e56f54a238656be1dbd2ef021bf0d012e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Tue, 8 Apr 2025 20:42:58 +0200 Subject: [PATCH] video/sws_utils: limit sws-cvs and sws-chs to [-100, 100] Makes no sense to create filters with some huge offsets. --- video/sws_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/sws_utils.c b/video/sws_utils.c index a3aa57e5c2..7966c97f64 100644 --- a/video/sws_utils.c +++ b/video/sws_utils.c @@ -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)},