From ed2e2894ab6b1743d8ba9b7334606a1648099050 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 12 Aug 2020 17:30:30 +0200 Subject: sub: extend range of --sub-pos option Seems like this is requested all the time. It seems libass allows out of range values, but does allows the subtitle to go out of the screen at the bottom (only when moving it to the top it's "clamped"). Too bad, don't do that then. The bitmap sub rendering code on the other hand is under our control, and will not move a subtitle out of the screen. Fixes: #7986 --- options/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'options') diff --git a/options/options.c b/options/options.c index efde6fad4b..1e104e886f 100644 --- a/options/options.c +++ b/options/options.c @@ -232,7 +232,7 @@ const struct m_sub_options mp_subtitle_sub_opts = { {"stretch-image-subs-to-screen", OPT_FLAG(stretch_image_subs)}, {"image-subs-video-resolution", OPT_FLAG(image_subs_video_res)}, {"sub-fix-timing", OPT_FLAG(sub_fix_timing)}, - {"sub-pos", OPT_INT(sub_pos), M_RANGE(0, 100)}, + {"sub-pos", OPT_INT(sub_pos), M_RANGE(0, 150)}, {"sub-gauss", OPT_FLOAT(sub_gauss), M_RANGE(0.0, 3.0)}, {"sub-gray", OPT_FLAG(sub_gray)}, {"sub-ass", OPT_FLAG(ass_enabled), .flags = UPDATE_SUB_HARD}, -- cgit v1.2.3