Commit 30587607 authored by benoit's avatar benoit

asfdec: skip byte array tags.

Patch from Anton Khirnov wyskas gmail


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22019 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 85ee8450
...@@ -161,9 +161,9 @@ static void get_tag(AVFormatContext *s, const char *key, int type, int len) ...@@ -161,9 +161,9 @@ static void get_tag(AVFormatContext *s, const char *key, int type, int len)
if (!value) if (!value)
return; return;
if (type <= 1) { // unicode or byte if (type == 0) { // UTF16-LE
get_str16_nolen(s->pb, len, value, len); get_str16_nolen(s->pb, len, value, len);
} else if (type <= 5) { // boolean or DWORD or QWORD or WORD } else if (type > 1 && type <= 5) { // boolean or DWORD or QWORD or WORD
uint64_t num = get_value(s->pb, type); uint64_t num = get_value(s->pb, type);
snprintf(value, len, "%"PRIu64, num); snprintf(value, len, "%"PRIu64, num);
} else { } else {
......
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