aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-06-15 18:42:10 +0200
committerClément Bœsch <ubitux@gmail.com>2012-06-15 18:42:10 +0200
commitb678daf05cbe45abceb5cec6592ae96fa6f0c983 (patch)
treeb43cf67f9a69fcd33f24ed8e1a36e414fba2744e
parent47395a4f529aa78791da979e3dc13db82beb2cec (diff)
downloadffmpeg-b678daf05cbe45abceb5cec6592ae96fa6f0c983.tar.gz
lavc/microdvddec: fix color parsing.
-rw-r--r--libavcodec/microdvddec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/microdvddec.c b/libavcodec/microdvddec.c
index a5623624e1..fe70ea45dd 100644
--- a/libavcodec/microdvddec.c
+++ b/libavcodec/microdvddec.c
@@ -101,6 +101,8 @@ static char *microdvd_load_tags(struct microdvd_tag *tags, char *s)
case 'C':
tag.persistent = MICRODVD_PERSISTENT_ON;
case 'c':
+ if (*s == '$')
+ s++;
tag.data1 = strtol(s, &s, 16) & 0x00ffffff;
if (*s != '}')
break;