[FFmpeg-cvslog] lavc/microdvddec: fix color parsing.
Clément Bœsch
git at videolan.org
Fri Jun 15 18:49:37 CEST 2012
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Fri Jun 15 18:42:10 2012 +0200| [b678daf05cbe45abceb5cec6592ae96fa6f0c983] | committer: Clément Bœsch
lavc/microdvddec: fix color parsing.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b678daf05cbe45abceb5cec6592ae96fa6f0c983
---
libavcodec/microdvddec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/microdvddec.c b/libavcodec/microdvddec.c
index a562362..fe70ea4 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;
More information about the ffmpeg-cvslog
mailing list