From 0383070588aff3313de70d90478fd607c6c442ff Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Fri, 23 Sep 2011 13:57:11 +0300 Subject: sd_ass.c: set event->Style to fix --ass-styles Set the "Style" attribute for subtitle events created in sd_ass to match the "default_style" attribute of the track. This is required to make --ass-styles work with recent libass versions (otherwise the event would use style 0, which is a fallback style added by libass now). Commit 378ada847c8eb3a641392691b1a2317f8fc214e0 ("sub/ass: use default style, not first style unconditionally") fixed the same issue for external subtitles converted with mp_ass_read_subdata(); this commit fixes it for muxed ones. --- sub/sd_ass.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sub/sd_ass.c') diff --git a/sub/sd_ass.c b/sub/sd_ass.c index 0e15a7e28b..69587646e4 100644 --- a/sub/sd_ass.c +++ b/sub/sd_ass.c @@ -121,6 +121,7 @@ static void decode(struct sh_sub *sh, struct osd_state *osd, void *data, ASS_Event *event = track->events + eid; event->Start = ipts; event->Duration = iduration; + event->Style = track->default_style; event->Text = strdup(buf); } -- cgit v1.2.3