diff options
author | llyyr <llyyr.public@gmail.com> | 2023-12-16 01:32:45 +0530 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-04-18 00:14:44 +0200 |
commit | 805577c79274d1f3acda02904a13273d84770fa1 (patch) | |
tree | a3c4b3ed0060ad6f94a3efcdc2e5280c0a2b5752 /options/options.c | |
parent | f862d3b6cd66abee98f2af21c36255ef7361cb80 (diff) | |
download | mpv-805577c79274d1f3acda02904a13273d84770fa1.tar.bz2 mpv-805577c79274d1f3acda02904a13273d84770fa1.tar.xz |
sd_ass: add `sub-vsfilter-bidi-compat` to enable vsfilter bidi compat
Enable ASS_FEATURE_{WHOLE_TEXT_LAYOUT, BIDI_BRACKETS} and auto base
detection by default, and add an option to disable this if needed.
This is strictly an improvement for webvtt files as they always use
auto base detection. This _fixes_ right-to-left text rendering for
webvtt files which correctly mark rtl/ltr. Webvtt files obtained from
sources which sideload the RTL information through css also see an
improvement due to the auto detection.
Generally SRT files also want this, but some are also written to
workaround VSFilter quirks.
See also: https://github.com/mpv-player/mpv/pull/12985#issuecomment-1839565138
Diffstat (limited to 'options/options.c')
-rw-r--r-- | options/options.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index 59c7c4d236..c059f4157d 100644 --- a/options/options.c +++ b/options/options.c @@ -309,6 +309,7 @@ const struct m_sub_options mp_subtitle_sub_opts = { {"sub-ass-vsfilter-color-compat", OPT_CHOICE(ass_vsfilter_color_compat, {"no", 0}, {"basic", 1}, {"full", 2}, {"force-601", 3})}, {"sub-ass-vsfilter-blur-compat", OPT_BOOL(ass_vsfilter_blur_compat)}, + {"sub-vsfilter-bidi-compat", OPT_BOOL(sub_vsfilter_bidi_compat)}, {"embeddedfonts", OPT_BOOL(use_embedded_fonts), .flags = UPDATE_SUB_HARD}, {"sub-ass-style-overrides", OPT_STRINGLIST(ass_style_override_list), .flags = UPDATE_SUB_HARD}, |