diff options
author | wm4 <wm4@nowhere> | 2020-08-12 17:30:30 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-08-12 17:30:30 +0200 |
commit | ed2e2894ab6b1743d8ba9b7334606a1648099050 (patch) | |
tree | 9abea001b3ef021459bfc394691ab147954e8742 /options | |
parent | cda8f1613ff307a9e0b5528743f3e941b05dcee7 (diff) | |
download | mpv-ed2e2894ab6b1743d8ba9b7334606a1648099050.tar.bz2 mpv-ed2e2894ab6b1743d8ba9b7334606a1648099050.tar.xz |
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
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 2 |
1 files changed, 1 insertions, 1 deletions
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}, |