Commit 8ef46f4a authored by Clément Bœsch's avatar Clément Bœsch

avcodec/microdvddec: support various broken form of color tags

Inspired by a patch from Michal Wazgird <mplayer@cyryl.net>

See https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2014-November/072772.html
parent cad3148e
...@@ -101,7 +101,7 @@ static char *microdvd_load_tags(struct microdvd_tag *tags, char *s) ...@@ -101,7 +101,7 @@ static char *microdvd_load_tags(struct microdvd_tag *tags, char *s)
case 'C': case 'C':
tag.persistent = MICRODVD_PERSISTENT_ON; tag.persistent = MICRODVD_PERSISTENT_ON;
case 'c': case 'c':
if (*s == '$') while (*s == '$' || *s == '#')
s++; s++;
tag.data1 = strtol(s, &s, 16) & 0x00ffffff; tag.data1 = strtol(s, &s, 16) & 0x00ffffff;
if (*s != '}') if (*s != '}')
......
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