diff options
author | wm4 <wm4@nowhere> | 2016-09-07 14:11:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-07 14:11:56 +0200 |
commit | 2372b0a6f6b3cd653004800f56998bf0176cb0b4 (patch) | |
tree | 8cbcfb477527c3fb3104095789e9ed34ff2deeff /sub | |
parent | 2f1eb49e9f130c728c09a3458ff8449bc571c0c0 (diff) |
sub: fix previous commit with older libass releases
Diffstat (limited to 'sub')
-rw-r--r-- | sub/sd_ass.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sub/sd_ass.c b/sub/sd_ass.c index 6bbd701998..0b807d0302 100644 --- a/sub/sd_ass.c +++ b/sub/sd_ass.c @@ -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); |