Mercurial > mplayer.hg
changeset 26271:fa145ef5ac13
Case insensitive parsing of SSA/ASS section headers.
author | eugeni |
---|---|
date | Sun, 30 Mar 2008 17:42:19 +0000 |
parents | 75a108423c11 |
children | f6accae8703b |
files | libass/ass.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libass/ass.c Sun Mar 30 17:42:17 2008 +0000 +++ b/libass/ass.c Sun Mar 30 17:42:19 2008 +0000 @@ -647,17 +647,17 @@ */ static int process_line(ass_track_t* track, char *str) { - if (!strncmp(str, "[Script Info]", 13)) { + if (!strncasecmp(str, "[Script Info]", 13)) { track->parser_priv->state = PST_INFO; - } else if (!strncmp(str, "[V4 Styles]", 11)) { + } else if (!strncasecmp(str, "[V4 Styles]", 11)) { track->parser_priv->state = PST_STYLES; track->track_type = TRACK_TYPE_SSA; - } else if (!strncmp(str, "[V4+ Styles]", 12)) { + } else if (!strncasecmp(str, "[V4+ Styles]", 12)) { track->parser_priv->state = PST_STYLES; track->track_type = TRACK_TYPE_ASS; - } else if (!strncmp(str, "[Events]", 8)) { + } else if (!strncasecmp(str, "[Events]", 8)) { track->parser_priv->state = PST_EVENTS; - } else if (!strncmp(str, "[Fonts]", 7)) { + } else if (!strncasecmp(str, "[Fonts]", 7)) { track->parser_priv->state = PST_FONTS; } else { switch (track->parser_priv->state) {