summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2021-07-23 20:31:15 +0300
committeravih <avih@users.noreply.github.com>2021-08-05 21:32:22 +0300
commit41650203c32e179e5f3cf89e176ef6caccba05d9 (patch)
tree21bb2a4682f33be0ff99f52a3ba3efe847b4d1cb /options/options.c
parent7c264950c0bff588f6852c461c26b37a550a5abb (diff)
downloadmpv-41650203c32e179e5f3cf89e176ef6caccba05d9.tar.bz2
mpv-41650203c32e179e5f3cf89e176ef6caccba05d9.tar.xz
sub: sub-filter-regex and jsre: support ass-to-plaintext
Using --sub-filter-regex-plain (default:no) The ass-to-plaintext functionality already existed at sd_ass.c, but it's internal and uses a private buffer type, so a trivial utility wrapper was added with standard char*/bstr interface. The plaintext can be multi-line, and the multi-line regexp flag is now always set, but only affects plaintext (the ASS source is one line).
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 465ac9a35f..2f8885e0ba 100644
--- a/options/options.c
+++ b/options/options.c
@@ -218,6 +218,7 @@ const struct m_sub_options mp_sub_filter_opts = {
{"sub-filter-sdh", OPT_FLAG(sub_filter_SDH)},
{"sub-filter-sdh-harder", OPT_FLAG(sub_filter_SDH_harder)},
{"sub-filter-regex-enable", OPT_FLAG(rf_enable)},
+ {"sub-filter-regex-plain", OPT_FLAG(rf_plain)},
{"sub-filter-regex", OPT_STRINGLIST(rf_items)},
{"sub-filter-jsre", OPT_STRINGLIST(jsre_items)},
{"sub-filter-regex-warn", OPT_FLAG(rf_warn)},