diff options
author | Benoit Fouet <benoit.fouet@free.fr> | 2010-02-24 07:34:12 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2010-02-24 07:34:12 +0000 |
commit | 6538c0f1c6df00b0e3a57157be7ed7f00f174f64 (patch) | |
tree | 5d1c8f38631071091db265f63cb36993453d0d4b /libavformat | |
parent | 27e7492771a8b7ed8df28139e439c4a5a7b053e3 (diff) | |
download | ffmpeg-6538c0f1c6df00b0e3a57157be7ed7f00f174f64.tar.gz |
asfdec: skip byte array tags.
Patch from Anton Khirnov wyskas gmail
Originally committed as revision 22019 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/asfdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 129f5968fd..3ccadeb72c 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -161,9 +161,9 @@ static void get_tag(AVFormatContext *s, const char *key, int type, int len) if (!value) return; - if (type <= 1) { // unicode or byte + if (type == 0) { // UTF16-LE 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); snprintf(value, len, "%"PRIu64, num); } else { |