diff options
Diffstat (limited to 'libass/ass.c')
-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; |