lavc/microdvddec: fix color parsing.
authorClément Bœsch <ubitux@gmail.com>
Fri, 15 Jun 2012 16:42:10 +0000 (18:42 +0200)
committerClément Bœsch <ubitux@gmail.com>
Fri, 15 Jun 2012 16:42:10 +0000 (18:42 +0200)
libavcodec/microdvddec.c

index a562362..fe70ea4 100644 (file)
@@ -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;