aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2013-07-18 05:44:40 -0300
committerMichael Niedermayer <michaelni@gmx.at>2013-07-18 10:55:23 +0200
commit562fb9c54099ba854dbf19ab38db8542d8bae71f (patch)
tree1728132ee24d35a9705549d9a23a9231beec5db5 /libavformat
parent9d01bf7d66df74fe58d71b7e93e86895270a91c2 (diff)
downloadffmpeg-562fb9c54099ba854dbf19ab38db8542d8bae71f.tar.gz
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: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/riff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c
index b6ed56286c..82312c6370 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -439,6 +439,7 @@ const AVMetadataConv ff_riff_info_conv[] = {
{ "INAM", "title" },
{ "IPRD", "album" },
{ "IPRT", "track" },
+ { "ITRK", "track" },
{ "ISFT", "encoder" },
{ "ISMP", "timecode" },
{ "ITCH", "encoded_by" },
@@ -718,7 +719,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", "ISMP", "ISRC", "ISRF", "ITCH",
+ "IPRT", "ITRK", "ISBJ", "ISFT", "ISHP", "ISMP", "ISRC", "ISRF", "ITCH",
{ 0 }
};