Commit 562fb9c5 authored by James Almer's avatar James Almer Committed by Michael Niedermayer

lavf/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
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9d01bf7d
...@@ -439,6 +439,7 @@ const AVMetadataConv ff_riff_info_conv[] = { ...@@ -439,6 +439,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" },
{ "ISMP", "timecode" }, { "ISMP", "timecode" },
{ "ITCH", "encoded_by" }, { "ITCH", "encoded_by" },
...@@ -718,7 +719,7 @@ void ff_riff_write_info_tag(AVIOContext *pb, const char *tag, const char *str) ...@@ -718,7 +719,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", "ISMP", "ISRC", "ISRF", "ITCH", "IPRT", "ITRK", "ISBJ", "ISFT", "ISHP", "ISMP", "ISRC", "ISRF", "ITCH",
{ 0 } { 0 }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment