diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2011-01-18 15:33:36 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2011-01-18 15:33:36 +0200 |
commit | 7bb10e7ce2683da43345a60584c63479751366ff (patch) | |
tree | 2c978033cc1413aced2d64f8f28cd7ed8855ac8b /ass_mp.c | |
parent | 4284cf9ef050044619c773b195f0eb941f922e88 (diff) | |
download | mpv-7bb10e7ce2683da43345a60584c63479751366ff.tar.bz2 mpv-7bb10e7ce2683da43345a60584c63479751366ff.tar.xz |
sd_ass: remove subreader use, support plaintext markup
Originally, when rendering plaintext subs with libass, the subtitles
were first converted to the "struct subtitle" form with sub_add_text()
and then from that to libass events. Change sd_ass to convert the
subtitles directly to libass events without using the old sub
machinery. The new conversion at least fixes some timing issues. Also
use the markup support added in the previous commit, so that
HTML-style markup is also supported in "plaintext" subs rendered with
libass.
Diffstat (limited to 'ass_mp.c')
-rw-r--r-- | ass_mp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -154,7 +154,7 @@ static int check_duplicate_plaintext_event(ASS_Track *track) * note: assumes that subtitle is _not_ fps-based; caller must manually correct * Start and Duration in other case. **/ -int ass_process_subtitle(ASS_Track *track, subtitle *sub) +static int ass_process_subtitle(ASS_Track *track, subtitle *sub) { int eid; ASS_Event *event; |