[FFmpeg-cvslog] r22019 - trunk/libavformat/asfdec.c
benoit
subversion
Wed Feb 24 08:34:12 CET 2010
Author: benoit
Date: Wed Feb 24 08:34:12 2010
New Revision: 22019
Log:
asfdec: skip byte array tags.
Patch from Anton Khirnov wyskas gmail
Modified:
trunk/libavformat/asfdec.c
Modified: trunk/libavformat/asfdec.c
==============================================================================
--- trunk/libavformat/asfdec.c Wed Feb 24 08:33:18 2010 (r22018)
+++ trunk/libavformat/asfdec.c Wed Feb 24 08:34:12 2010 (r22019)
@@ -161,9 +161,9 @@ static void get_tag(AVFormatContext *s,
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 {
More information about the ffmpeg-cvslog
mailing list