summaryrefslogtreecommitdiff
path: root/libavformat/id3v2.c
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-09-29 07:05:03 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-09-29 07:05:03 +0000
commit6378b062081f461b4e7d245aad7c8f67ba4bb2f1 (patch)
tree896ba9f20dcc6331cdab91ec8444fdaa1eabe677 /libavformat/id3v2.c
parenta5568f460826b7ce068e81b2d51f35c5052287ed (diff)
Add id3v2 metadata conversion table and use it in mp3 muxer.
Patch by Anton Khirnov, wyskas gmail Originally committed as revision 20073 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/id3v2.c')
-rw-r--r--libavformat/id3v2.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index dedc0450b3..651c8fc613 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -242,3 +242,22 @@ void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags)
av_log(s, AV_LOG_INFO, "ID3v2.%d tag skipped, cannot handle %s\n", version, reason);
url_fskip(s->pb, len);
}
+
+const AVMetadataConv ff_id3v2_metadata_conv[] = {
+ { "TALB", "album"},
+ { "TCOM", "composer"},
+ { "TCON", "genre"},
+ { "TCOP", "copyright"},
+ { "TDRL", "date"},
+ { "TENC", "encoder"},
+ { "TIT2", "title"},
+ { "TLAN", "language"},
+ { "TPE1", "author"},
+ { "TPOS", "disc"},
+ { "TPUB", "publisher"},
+ { "TRCK", "track"},
+ { "TSOA", "albumsort"},
+ { "TSOP", "authorsort"},
+ { "TSOT", "titlesort"},
+ { 0 }
+};