diff --git a/libass/ass.c b/libass/ass.c index 1df33e0ee2..14f6c1587e 100644 --- a/libass/ass.c +++ b/libass/ass.c @@ -647,17 +647,17 @@ static int process_fonts_line(ass_track_t* track, char *str) */ 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) {