summaryrefslogtreecommitdiff
path: root/libavformat/oggparsevorbis.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-06-13 22:45:58 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-06-13 22:45:58 +0000
commitd7bb185f993fe10bf7feec80e262d2e39147c31b (patch)
tree9ecfd4a8502aec838be6c2b6ce3e5da9825b13d0 /libavformat/oggparsevorbis.c
parent7ca1295985b03034653c03f8f3bca9e00bcf8b83 (diff)
Add a VorbisComment metadata conversion table and use it in the FLAC and
Ogg demuxers. Originally committed as revision 19186 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggparsevorbis.c')
-rw-r--r--libavformat/oggparsevorbis.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index 8eb1f4789c..5b45631ab6 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -30,6 +30,21 @@
#include "avformat.h"
#include "oggdec.h"
+/**
+ * VorbisComment metadata conversion mapping.
+ * from Ogg Vorbis I format specification: comment field and header specification
+ * http://xiph.org/vorbis/doc/v-comment.html
+ */
+const AVMetadataConv ff_vorbiscomment_metadata_conv[] = {
+ { "ARTIST" , "author" },
+ { "TITLE" , "title" },
+ { "ALBUM" , "album" },
+ { "DATE" , "year" },
+ { "TRACKNUMBER", "track" },
+ { "GENRE" , "genre" },
+ { 0 }
+};
+
int
vorbis_comment(AVFormatContext * as, uint8_t *buf, int size)
{