Browse Source

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
tags/n2.5
Clément Bœsch 11 years ago
parent
commit
8ef46f4a0c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/microdvddec.c

+ 1
- 1
libavcodec/microdvddec.c View File

@@ -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 != '}')


Loading…
Cancel
Save