sd_ass: replace ifdef with explicit version check

This commit is contained in:
llyyr 2023-12-25 13:30:56 +05:30 committed by Kacper Michajłow
parent c9a53780cf
commit d2efa1c1be
1 changed files with 1 additions and 1 deletions

View File

@ -510,7 +510,7 @@ static void configure_ass(struct sd *sd, struct mp_osd_res *dim,
set_force_flags |= ASS_OVERRIDE_BIT_SELECTIVE_FONT_SCALE;
if (converted)
set_force_flags |= ASS_OVERRIDE_BIT_ALIGNMENT;
#ifdef ASS_JUSTIFY_AUTO
#if LIBASS_VERSION >= 0x01306000
if ((converted || shared_opts->ass_style_override[sd->order]) && opts->ass_justify)
set_force_flags |= ASS_OVERRIDE_BIT_JUSTIFY;
#endif