Browse Source

Don't add WM prefixes to all written ASF tags.

Patch by Anton Khirnov <wyskas gmail com>.

Originally committed as revision 22033 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Anton Khirnov Ronald S. Bultje 15 years ago
parent
commit
a106d4112d
2 changed files with 4 additions and 7 deletions
  1. +3
    -3
      libavformat/asf.c
  2. +1
    -4
      libavformat/asfenc.c

+ 3
- 3
libavformat/asf.c View File

@@ -129,10 +129,10 @@ const ff_asf_guid ff_asf_digital_signature = {
};

const AVMetadataConv ff_asf_metadata_conv[] = {
{ "AlbumArtist", "album_artist"},
{ "AlbumTitle" , "album" },
{ "WM/AlbumArtist", "album_artist"},
{ "WM/AlbumTitle" , "album" },
{ "Author" , "artist" },
{ "TrackNumber", "track" },
{ "WM/TrackNumber", "track" },
// { "Year" , "date" }, TODO: conversion year<->date
{ 0 }
};

+ 1
- 4
libavformat/asfenc.c View File

@@ -345,10 +345,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data
hpos = put_header(pb, &ff_asf_extended_content_header);
put_le16(pb, metadata_count);
while ((tag = av_metadata_get(s->metadata, "", tag, AV_METADATA_IGNORE_SUFFIX))) {
put_le16(pb, 2*(strlen(tag->key) + 4));
put_le16(pb, 'W');
put_le16(pb, 'M');
put_le16(pb, '/');
put_le16(pb, 2*(strlen(tag->key) + 1));
put_str16_nolen(pb, tag->key);
put_le16(pb, 0);
put_le16(pb, 2*(strlen(tag->value) + 1));


Loading…
Cancel
Save