[FFmpeg-cvslog] riff: Add ITRK tag
James Almer
git at videolan.org
Fri Apr 4 03:25:00 CEST 2014
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Jul 18 05:44:40 2013 -0300| [fa570a5548a39a5d55f68a54766f0d0383776512] | committer: Vittorio Giovara
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
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fa570a5548a39a5d55f68a54766f0d0383776512
---
libavformat/riff.c | 1 +
libavformat/riffenc.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/riff.c b/libavformat/riff.c
index c18fea5..87176c2 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 98e97c0..681a930 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 }
};
More information about the ffmpeg-cvslog
mailing list