[FFmpeg-cvslog] avcodec/microdvddec: support various broken form of color tags

Clément Bœsch git at videolan.org
Sun Nov 23 12:18:05 CET 2014


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sun Nov 23 12:16:30 2014 +0100| [8ef46f4a0cd3019b1099de424db28954f2c4ad59] | committer: Clément Bœsch

avcodec/microdvddec: support various broken form of color tags

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

See https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2014-November/072772.html

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8ef46f4a0cd3019b1099de424db28954f2c4ad59
---

 libavcodec/microdvddec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/microdvddec.c b/libavcodec/microdvddec.c
index b20aac5..b225ab9 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 != '}')



More information about the ffmpeg-cvslog mailing list