summaryrefslogtreecommitdiffstats
path: root/sub/sd_srt.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-17 21:26:58 +0200
committerwm4 <wm4@nowhere>2013-06-18 02:19:15 +0200
commite8ae0b985218b8c35172567391bad528b3a07009 (patch)
tree4145b76ebbbf09ba4eec9ea10ae1fee109187264 /sub/sd_srt.c
parent171d1ef7feb2bcdc5f9aed84b36adfc3ae576e5d (diff)
downloadmpv-e8ae0b985218b8c35172567391bad528b3a07009.tar.bz2
mpv-e8ae0b985218b8c35172567391bad528b3a07009.tar.xz
sd_srt: handle '<font color="##FFA500">'
Wow this is stupid.
Diffstat (limited to 'sub/sd_srt.c')
-rw-r--r--sub/sd_srt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sub/sd_srt.c b/sub/sd_srt.c
index 6258acde5b..31d2959e59 100644
--- a/sub/sd_srt.c
+++ b/sub/sd_srt.c
@@ -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;