[FFmpeg-cvslog] r22016 - trunk/libavformat/asfdec.c
benoit
subversion
Wed Feb 24 08:31:04 CET 2010
Author: benoit
Date: Wed Feb 24 08:31:03 2010
New Revision: 22016
Log:
asfdec: only unicode tags must have even length.
Patch from: Anton Khirnov wyskas gmail
Modified:
trunk/libavformat/asfdec.c
Modified: trunk/libavformat/asfdec.c
==============================================================================
--- trunk/libavformat/asfdec.c Wed Feb 24 07:27:12 2010 (r22015)
+++ trunk/libavformat/asfdec.c Wed Feb 24 08:31:03 2010 (r22016)
@@ -441,7 +441,7 @@ static int asf_read_header(AVFormatConte
get_str16_nolen(pb, name_len, name, sizeof(name));
value_type = get_le16(pb);
value_len = get_le16(pb);
- if (value_len%2)
+ if (!value_type && value_len%2)
value_len += 1;
get_tag(s, name, value_type, value_len);
}
More information about the ffmpeg-cvslog
mailing list