From 02a20b4ebe29cb7d488ceaf39fb5a50c2443295a Mon Sep 17 00:00:00 2001 From: Mohammad AlSaleh Date: Sun, 14 Jan 2024 23:38:20 +0300 Subject: sub: add `--sub-lavc-o` option We have `--vd-lavc-o` and `--ad-lavc-o`, but no equivalent option for subtitles. Signed-off-by: Mohammad AlSaleh --- options/options.c | 1 + options/options.h | 1 + 2 files changed, 2 insertions(+) (limited to 'options') diff --git a/options/options.c b/options/options.c index da75bb21ed..c103f80103 100644 --- a/options/options.c +++ b/options/options.c @@ -321,6 +321,7 @@ const struct m_sub_options mp_subtitle_sub_opts = { {"teletext-page", OPT_INT(teletext_page), M_RANGE(1, 999)}, {"sub-past-video-end", OPT_BOOL(sub_past_video_end)}, {"sub-ass-force-style", OPT_REPLACED("sub-ass-style-overrides")}, + {"sub-lavc-o", OPT_KEYVALUELIST(sub_avopts)}, {0} }, .size = sizeof(OPT_BASE_STRUCT), diff --git a/options/options.h b/options/options.h index 7f5bea87fd..6caabbfe75 100644 --- a/options/options.h +++ b/options/options.h @@ -113,6 +113,7 @@ struct mp_subtitle_opts { bool sub_clear_on_seek; int teletext_page; bool sub_past_video_end; + char **sub_avopts; }; // Options for both primary and secondary subs. -- cgit v1.2.3