Mercurial > libavformat.hg
diff oggparsevorbis.c @ 5032:3aabdadf9d5f libavformat
Add a VorbisComment metadata conversion table and use it in the FLAC and
Ogg demuxers.
| author | jbr |
|---|---|
| date | Sat, 13 Jun 2009 22:45:58 +0000 |
| parents | 304a0ea063f0 |
| children | a59767d33928 |
line wrap: on
line diff
--- a/oggparsevorbis.c Sat Jun 13 22:29:38 2009 +0000 +++ b/oggparsevorbis.c Sat Jun 13 22:45:58 2009 +0000 @@ -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) {
