mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
43382b5f13
commit
514b73cf0d
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user