summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-01 11:06:16 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-01 11:06:16 +0000
commit76e851e4eeeee946e0d70811a597e3a6eaa95dab (patch)
treed327b01ba49b524f5feabf208ed6abb8ee225744 /libass
parent19c9e0aceb9620c862cab91b509df91931821d66 (diff)
downloadmpv-76e851e4eeeee946e0d70811a597e3a6eaa95dab.tar.bz2
mpv-76e851e4eeeee946e0d70811a597e3a6eaa95dab.tar.xz
Skip '@' at the beginning of the font name.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26625 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass')
-rw-r--r--libass/ass.c6
1 files changed, 6 insertions, 0 deletions
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;