diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-05-01 11:06:16 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-05-01 11:06:16 +0000 |
commit | 76e851e4eeeee946e0d70811a597e3a6eaa95dab (patch) | |
tree | d327b01ba49b524f5feabf208ed6abb8ee225744 | |
parent | 19c9e0aceb9620c862cab91b509df91931821d66 (diff) | |
download | mpv-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
-rw-r--r-- | libass/ass.c | 6 |
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; |