sd_srt: handle '<font color="##FFA500">'

Wow this is stupid.
This commit is contained in:
wm4 2013-06-17 21:26:58 +02:00
parent 171d1ef7fe
commit e8ae0b9852
1 changed files with 2 additions and 0 deletions

View File

@ -374,6 +374,8 @@ static void convert_subrip(const char *orig, char *dest, int dest_buffer_size)
if (!found) {
// Remove the leading '#'
bstr_eatstart(&val, bstr0("#"));
// Sometimes there are two '#'
bstr_eatstart(&val, bstr0("#"));
// Parse RRGGBB format
tag->color = bstrtoll(val, &val, 16) & 0x00ffffff;