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

eugeni subversion at mplayerhq.hu
Thu May 1 13:06:16 CEST 2008


Author: eugeni
Date: Thu May  1 13:06:16 2008
New Revision: 26625

Log:
Skip '@' at the beginning of the font name.


Modified:
   trunk/libass/ass.c

Modified: trunk/libass/ass.c
==============================================================================
--- trunk/libass/ass.c	(original)
+++ trunk/libass/ass.c	Thu May  1 13:06:16 2008
@@ -482,6 +482,12 @@ static int process_style(ass_track_t* tr
 		style->Name = strdup("Default");
 	if (!style->FontName)
 		style->FontName = strdup("Arial");
+	// skip '@' at the start of the font name
+	if (*style->FontName == '@') {
+		p = style->FontName;
+		style->FontName = strdup(p + 1);
+		free(p);
+	}
 	free(format);
 	return 0;
 	



More information about the MPlayer-cvslog mailing list