diff options
author | James Almer <jamrial@gmail.com> | 2013-07-18 05:44:40 -0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-04-04 00:28:28 +0200 |
commit | fa570a5548a39a5d55f68a54766f0d0383776512 (patch) | |
tree | b496e4feb7f5998a868f1c04c9ba70fdb93e8819 | |
parent | 121b5b7e0476d22408d748b914799b7c00acc3a4 (diff) | |
download | ffmpeg-fa570a5548a39a5d55f68a54766f0d0383776512.tar.gz |
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
-rw-r--r-- | libavformat/riff.c | 1 | ||||
-rw-r--r-- | libavformat/riffenc.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c index c18fea5bca..87176c255f 100644 --- a/libavformat/riff.c +++ b/libavformat/riff.c @@ -392,6 +392,7 @@ const AVMetadataConv ff_riff_info_conv[] = { { "INAM", "title" }, { "IPRD", "album" }, { "IPRT", "track" }, + { "ITRK", "track" }, { "ISFT", "encoder" }, { "ITCH", "encoded_by" }, { 0 }, diff --git a/libavformat/riffenc.c b/libavformat/riffenc.c index 98e97c05ed..681a930212 100644 --- a/libavformat/riffenc.c +++ b/libavformat/riffenc.c @@ -257,7 +257,7 @@ void ff_riff_write_info_tag(AVIOContext *pb, const char *tag, const char *str) static const char riff_tags[][5] = { "IARL", "IART", "ICMS", "ICMT", "ICOP", "ICRD", "ICRP", "IDIM", "IDPI", "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 } }; |