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.h | |
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.h')
-rw-r--r-- | options/options.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.h b/options/options.h index ae75ec9d11..6f7b011975 100644 --- a/options/options.h +++ b/options/options.h @@ -105,6 +105,7 @@ struct mp_subtitle_opts { bool ass_vsfilter_aspect_compat; int ass_vsfilter_color_compat; bool ass_vsfilter_blur_compat; + bool sub_vsfilter_bidi_compat; bool use_embedded_fonts; char **ass_style_override_list; char *ass_styles_file; |