Commit 2a979e58 authored by benoit's avatar benoit

asfdec: only unicode tags must have even length.

Patch from: Anton Khirnov wyskas gmail


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22016 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 58e5b86d
...@@ -441,7 +441,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -441,7 +441,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
get_str16_nolen(pb, name_len, name, sizeof(name)); get_str16_nolen(pb, name_len, name, sizeof(name));
value_type = get_le16(pb); value_type = get_le16(pb);
value_len = get_le16(pb); value_len = get_le16(pb);
if (value_len%2) if (!value_type && value_len%2)
value_len += 1; value_len += 1;
get_tag(s, name, value_type, value_len); get_tag(s, name, value_type, value_len);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment