From 76e851e4eeeee946e0d70811a597e3a6eaa95dab Mon Sep 17 00:00:00 2001 From: eugeni Date: Thu, 1 May 2008 11:06:16 +0000 Subject: Skip '@' at the beginning of the font name. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26625 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libass') diff --git a/libass/ass.c b/libass/ass.c index 14f6c1587e..3241f944c8 100644 --- a/libass/ass.c +++ b/libass/ass.c @@ -482,6 +482,12 @@ static int process_style(ass_track_t* track, char *str) 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; -- cgit v1.2.3