Browse Source

riff: Add ITRK tag

Some players, like foobar2000 or modern versions of WMP, create WAV
files using the ITRK tag for track instead of IPRT
tags/n2.3
James Almer Vittorio Giovara 12 years ago
parent
commit
fa570a5548
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      libavformat/riff.c
  2. +1
    -1
      libavformat/riffenc.c

+ 1
- 0
libavformat/riff.c View File

@@ -392,6 +392,7 @@ const AVMetadataConv ff_riff_info_conv[] = {
{ "INAM", "title" }, { "INAM", "title" },
{ "IPRD", "album" }, { "IPRD", "album" },
{ "IPRT", "track" }, { "IPRT", "track" },
{ "ITRK", "track" },
{ "ISFT", "encoder" }, { "ISFT", "encoder" },
{ "ITCH", "encoded_by" }, { "ITCH", "encoded_by" },
{ 0 }, { 0 },


+ 1
- 1
libavformat/riffenc.c View File

@@ -257,7 +257,7 @@ void ff_riff_write_info_tag(AVIOContext *pb, const char *tag, const char *str)
static const char riff_tags[][5] = { static const char riff_tags[][5] = {
"IARL", "IART", "ICMS", "ICMT", "ICOP", "ICRD", "ICRP", "IDIM", "IDPI", "IARL", "IART", "ICMS", "ICMT", "ICOP", "ICRD", "ICRP", "IDIM", "IDPI",
"IENG", "IGNR", "IKEY", "ILGT", "ILNG", "IMED", "INAM", "IPLT", "IPRD", "IENG", "IGNR", "IKEY", "ILGT", "ILNG", "IMED", "INAM", "IPLT", "IPRD",
"IPRT", "ISBJ", "ISFT", "ISHP", "ISRC", "ISRF", "ITCH",
"IPRT", "ITRK", "ISBJ", "ISFT", "ISHP", "ISRC", "ISRF", "ITCH",
{ 0 } { 0 }
}; };




Loading…
Cancel
Save