diff options
author | Clément Bœsch <u@pkh.me> | 2014-11-23 12:16:30 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2014-11-23 12:17:54 +0100 |
commit | 8ef46f4a0cd3019b1099de424db28954f2c4ad59 (patch) | |
tree | 301c39b2fe2262f579b134ffb545e5628fade6a2 /libavcodec | |
parent | cad3148ea3da5fd389eb5192ec13c668cf4008e1 (diff) | |
download | ffmpeg-8ef46f4a0cd3019b1099de424db28954f2c4ad59.tar.gz |
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
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/microdvddec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/microdvddec.c b/libavcodec/microdvddec.c index b20aac59f9..b225ab9f7e 100644 --- a/libavcodec/microdvddec.c +++ b/libavcodec/microdvddec.c @@ -101,7 +101,7 @@ static char *microdvd_load_tags(struct microdvd_tag *tags, char *s) case 'C': tag.persistent = MICRODVD_PERSISTENT_ON; case 'c': - if (*s == '$') + while (*s == '$' || *s == '#') s++; tag.data1 = strtol(s, &s, 16) & 0x00ffffff; if (*s != '}') |