Revision 83a6c1a6 libavformat/asfenc.c

View differences:

libavformat/asfenc.c
352 352
        hpos = put_header(pb, &ff_asf_extended_content_header);
353 353
        put_le16(pb, metadata_count);
354 354
        while ((tag = av_metadata_get(s->metadata, "", tag, AV_METADATA_IGNORE_SUFFIX))) {
355
            put_le16(pb, 2*(strlen(tag->key) + 3) + 1);
355
            put_le16(pb, 2*(strlen(tag->key) + 4));
356 356
            put_le16(pb, 'W');
357 357
            put_le16(pb, 'M');
358 358
            put_le16(pb, '/');
359 359
            put_str16_nolen(pb, tag->key);
360 360
            put_le16(pb, 0);
361
            put_le16(pb, 2*strlen(tag->value) + 1);
361
            put_le16(pb, 2*(strlen(tag->value) + 1));
362 362
            put_str16_nolen(pb, tag->value);
363 363
        }
364 364
        end_header(pb, hpos);

Also available in: Unified diff