mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 16:43:28 +00:00
sd_srt: handle '<font color="##FFA500">'
Wow this is stupid.
This commit is contained in:
parent
171d1ef7fe
commit
e8ae0b9852
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user