mirror of https://github.com/mpv-player/mpv
sub: fix previous commit with older libass releases
This commit is contained in:
parent
2f1eb49e9f
commit
2372b0a6f6
|
@ -329,8 +329,10 @@ static void configure_ass(struct sd *sd, struct mp_osd_res *dim,
|
|||
set_force_flags |= ASS_OVERRIDE_BIT_STYLE | ASS_OVERRIDE_BIT_FONT_SIZE;
|
||||
if (opts->ass_style_override == 4)
|
||||
set_force_flags |= ASS_OVERRIDE_BIT_FONT_SIZE;
|
||||
#if LIBASS_VERSION >= 0x01201001
|
||||
if (converted)
|
||||
set_force_flags |= ASS_OVERRIDE_BIT_ALIGNMENT;
|
||||
#endif
|
||||
ass_set_selective_style_override_enabled(priv, set_force_flags);
|
||||
ASS_Style style = {0};
|
||||
mp_ass_set_style(&style, 288, opts->sub_text_style);
|
||||
|
|
Loading…
Reference in New Issue