[MPlayer-cvslog] r19911 - trunk/libass/ass.c

eugeni subversion at mplayerhq.hu
Tue Sep 19 20:22:44 CEST 2006


Author: eugeni
Date: Tue Sep 19 20:22:44 2006
New Revision: 19911

Modified:
   trunk/libass/ass.c

Log:
Set ReadOrder values for external subtitles.


Modified: trunk/libass/ass.c
==============================================================================
--- trunk/libass/ass.c	(original)
+++ trunk/libass/ass.c	Tue Sep 19 20:22:44 2006
@@ -913,6 +913,7 @@
 {
 	char* buf;
 	ass_track_t* track;
+	int i;
 	
 	buf = read_file(fname);
 	if (!buf)
@@ -924,6 +925,10 @@
 	// process header
 	process_text(track, buf);
 
+	// external SSA/ASS subs does not have ReadOrder field
+	for (i = 0; i < track->n_events; ++i)
+		track->events[i].ReadOrder = i;
+
 	// there is no explicit end-of-font marker in ssa/ass
 	if (track->parser_priv->fontname)
 		decode_font(track);



More information about the MPlayer-cvslog mailing list