diff options
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_mkv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libmpdemux/demux_mkv.c b/libmpdemux/demux_mkv.c index c383872518..00acc803d7 100644 --- a/libmpdemux/demux_mkv.c +++ b/libmpdemux/demux_mkv.c @@ -356,13 +356,15 @@ vobsub_parse_custom_colors (sh_sub_t *sh, const char *start) use_custom_colors ? "ON" : "OFF"); if ((start = strstr(start, "colors:")) != NULL) { + unsigned int tmp; start += 7; while (isspace(*start)) start++; for (i = 0; i < 4; i++) { - if (sscanf(start, "%06x", &sh->colors[i]) != 1) + if (sscanf(start, "%06x", &tmp) != 1) break; + sh->colors[i] = vobsub_rgb_to_yuv(tmp); start += 6; while ((*start == ',') || isspace(*start)) start++; |