Mercurial > libavformat.hg
changeset 5708:f096d96c7e5c libavformat
asfdec: skip byte array tags.
Patch from Anton Khirnov wyskas gmail
author | benoit |
---|---|
date | Wed, 24 Feb 2010 07:34:12 +0000 |
parents | a97d8df3be2b |
children | bdcd3e540558 |
files | asfdec.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/asfdec.c Wed Feb 24 07:33:18 2010 +0000 +++ b/asfdec.c Wed Feb 24 07:34:12 2010 +0000 @@ -161,9 +161,9 @@ 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 {