From fb3db8a217d6357afa4e88a4107f87845ad514b8 Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Tue, 20 May 2014 12:22:39 +0300 Subject: sputext_decoder: ignore case in control codes (, , ...) --- src/spu_dec/sputext_decoder.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/spu_dec/sputext_decoder.c b/src/spu_dec/sputext_decoder.c index b9532e94e..2bd7dd885 100644 --- a/src/spu_dec/sputext_decoder.c +++ b/src/spu_dec/sputext_decoder.c @@ -338,36 +338,36 @@ static int ogm_render_line_internal(sputext_decoder_t *this, int x, int y, const while (i <= length) { if (text[i] == '<') { - if (!strncmp("", text+i, 3)) { + if (!strncasecmp("", text+i, 3)) { /* enable Bold color */ if (render) this->current_osd_text = OSD_TEXT2; i=i+3; continue; - } else if (!strncmp("", text+i, 4)) { + } else if (!strncasecmp("", text+i, 4)) { /* disable BOLD */ if (render) this->current_osd_text = OSD_TEXT1; i=i+4; continue; - } else if (!strncmp("", text+i, 3)) { + } else if (!strncasecmp("", text+i, 3)) { /* enable italics color */ if (render) this->current_osd_text = OSD_TEXT3; i=i+3; continue; - } else if (!strncmp("", text+i, 4)) { + } else if (!strncasecmp("", text+i, 4)) { /* disable italics */ if (render) this->current_osd_text = OSD_TEXT1; i=i+4; continue; - } else if (!strncmp("", text+i, 6)) { + } else if (!strncasecmp("", text+i, 6)) { /*Do somethink to disable typing fixme - no teststreams*/ i=i+6; continue; - } else if (!strncmp("", text+i, 7)) { + } else if (!strncasecmp("", text+i, 7)) { /*Do somethink to enable typing fixme - no teststreams*/ i=i+7; -- cgit v1.2.3