Commit 830c1cff authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Subtitles: avoid infinite loop

Close #6720
parent afdbf365
......@@ -695,12 +695,17 @@ static char *CreateHtmlSubtitle( int *pi_align, char *psz_subtitle )
if( psz_subtitle[i_len] == '\"' )
i_len++;
}
/* Not a tag, something else we do not understand */
if( i_len == 0 )
*psz_subtitle++;
psz_subtitle += i_len;
}
while (*psz_subtitle == ' ')
*psz_html++ = *psz_subtitle++;
}
*psz_html++ = *psz_subtitle++;
*psz_html++ = '>';
*psz_subtitle++;
}
else if( !strncmp( psz_subtitle, "</", 2 ))
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment