Revision 4a3104a9 libavformat/asfdec.c

View differences:

libavformat/asfdec.c
436 436
                    char name[1024];
437 437

  
438 438
                    name_len = get_le16(pb);
439
                    if (name_len%2)     // must be even, broken lavf versions wrote len-1
440
                        name_len += 1;
439 441
                    get_str16_nolen(pb, name_len, name, sizeof(name));
440 442
                    value_type = get_le16(pb);
441 443
                    value_len  = get_le16(pb);
444
                    if (value_len%2)
445
                        value_len += 1;
442 446
                    get_tag(s, name, value_type, value_len);
443 447
            }
444 448
        } else if (!guidcmp(&g, &ff_asf_metadata_header)) {

Also available in: Unified diff