diff options
author | Benoit Fouet <benoit.fouet@free.fr> | 2010-02-24 07:31:03 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2010-02-24 07:31:03 +0000 |
commit | 514b73cf0d18282504100aea956154d55394f95d (patch) | |
tree | 540efec19dabc3057f71dc20268a4857a950ea74 /libavformat/asfdec.c | |
parent | 43382b5f13d18c75ec284a48bd7352766810ed90 (diff) | |
download | ffmpeg-514b73cf0d18282504100aea956154d55394f95d.tar.gz |
asfdec: only unicode tags must have even length.
Patch from: Anton Khirnov wyskas gmail
Originally committed as revision 22016 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asfdec.c')
-rw-r--r-- | libavformat/asfdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 42c1944e90..7f26cf101a 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -441,7 +441,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) 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); } |