changeset 5705:fabb2eb7d42c libavformat

asfdec: only unicode tags must have even length. Patch from: Anton Khirnov wyskas gmail
author benoit
date Wed, 24 Feb 2010 07:31:03 +0000
parents 6b9c2a6d8fa4
children 85900cc2695d
files asfdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/asfdec.c	Wed Feb 24 06:27:12 2010 +0000
+++ b/asfdec.c	Wed Feb 24 07:31:03 2010 +0000
@@ -441,7 +441,7 @@
                     get_str16_nolen(pb, name_len, name, sizeof(name));
                     value_type = get_le16(pb);
                     value_len  = get_le16(pb);
-                    if (value_len%2)
+                    if (!value_type && value_len%2)
                         value_len += 1;
                     get_tag(s, name, value_type, value_len);
             }