summaryrefslogtreecommitdiffstats
path: root/ass_mp.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-18 15:33:36 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-18 15:33:36 +0200
commit7bb10e7ce2683da43345a60584c63479751366ff (patch)
tree2c978033cc1413aced2d64f8f28cd7ed8855ac8b /ass_mp.c
parent4284cf9ef050044619c773b195f0eb941f922e88 (diff)
downloadmpv-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ass_mp.c b/ass_mp.c
index 31acb521b8..364adafd64 100644
--- a/ass_mp.c
+++ b/ass_mp.c
@@ -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;