summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorMohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>2023-10-28 15:54:43 +0300
committerDudemanguy <random342@airmail.cc>2023-11-07 20:46:40 +0000
commitd470766000250ada785da3513dc7a476447e7e73 (patch)
treea75579ab409735bc935411f381e2fe7a043d3d8a /options/options.c
parentc2b3d967baf0f38807764ee9a04d620de19d3403 (diff)
downloadmpv-d470766000250ada785da3513dc7a476447e7e73.tar.bz2
mpv-d470766000250ada785da3513dc7a476447e7e73.tar.xz
sub: add --sub-stretch-durations option
Stretch a subtitle duration so it ends when the next one starts. Should help with subtitles which erroneously have zero durations. I found such a subrip substitles stream in the wild. Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index b217d10e56..36d59e2f4b 100644
--- a/options/options.c
+++ b/options/options.c
@@ -291,6 +291,7 @@ const struct m_sub_options mp_subtitle_sub_opts = {
{"stretch-image-subs-to-screen", OPT_BOOL(stretch_image_subs)},
{"image-subs-video-resolution", OPT_BOOL(image_subs_video_res)},
{"sub-fix-timing", OPT_BOOL(sub_fix_timing)},
+ {"sub-stretch-durations", OPT_BOOL(sub_stretch_durations)},
{"sub-pos", OPT_FLOAT(sub_pos), M_RANGE(0.0, 150.0)},
{"sub-gauss", OPT_FLOAT(sub_gauss), M_RANGE(0.0, 3.0)},
{"sub-gray", OPT_BOOL(sub_gray)},