summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2020-07-11 21:06:48 +0300
committeravih <avih@users.noreply.github.com>2020-07-15 15:49:03 +0300
commitd086421ca478940b8588e33c9f836472a578b199 (patch)
treee259ffef880d0651dbbf2473e4b546fe8952d43f
parentfba1c681b89502586a5ad467b729ed3878cacd3a (diff)
downloadmpv-d086421ca478940b8588e33c9f836472a578b199.tar.bz2
mpv-d086421ca478940b8588e33c9f836472a578b199.tar.xz
osd_libass: set ScaledBorderAndShadow
libass recently switched the default from 1 to 0 for compatibility with ASS scripts that rely on the historical/VSFilter default of 0. libass does attempt to detect and avoid breaking scripts that rely on the historic libass-only default of 1, but it doesn't cover tracks created directly through the API, so set the header explicitly. Fixes https://github.com/mpv-player/mpv/issues/7900.
-rw-r--r--sub/osd_libass.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sub/osd_libass.c b/sub/osd_libass.c
index 2efcef00be..5f9bc52f66 100644
--- a/sub/osd_libass.c
+++ b/sub/osd_libass.c
@@ -132,6 +132,7 @@ static void create_ass_track(struct osd_state *osd, struct osd_object *obj,
track->Timer = 100.;
track->WrapStyle = 1; // end-of-line wrapping instead of smart wrapping
track->Kerning = true;
+ track->ScaledBorderAndShadow = true;
update_playres(ass, &obj->vo_res);
}