diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2009-02-11 23:34:57 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2009-02-11 23:34:57 +0000 |
commit | bf6c32fe50e3ccca5b0c97db09fa6bfe86c6bc62 (patch) | |
tree | 3158ad5c42bb90c5d27b571cdaed1b7714ba9d56 /libavformat | |
parent | d1e3c6fd404fc401de26457af294e21852ffdd8f (diff) | |
download | ffmpeg-bf6c32fe50e3ccca5b0c97db09fa6bfe86c6bc62.tar.gz |
use new metadata API in ogg/vorbis demuxer
Originally committed as revision 17164 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/oggparsevorbis.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c index a1eb20dea2..a74fb9a9ff 100644 --- a/libavformat/oggparsevorbis.c +++ b/libavformat/oggparsevorbis.c @@ -81,21 +81,7 @@ vorbis_comment(AVFormatContext * as, uint8_t *buf, int size) memcpy(ct, v, vl); ct[vl] = 0; - // took from Vorbis_I_spec - if (!strcmp(tt, "AUTHOR") || !strcmp(tt, "ARTIST")) - av_strlcpy(as->author, ct, sizeof(as->author)); - else if (!strcmp(tt, "TITLE")) - av_strlcpy(as->title, ct, sizeof(as->title)); - else if (!strcmp(tt, "COPYRIGHT")) - av_strlcpy(as->copyright, ct, sizeof(as->copyright)); - else if (!strcmp(tt, "DESCRIPTION")) - av_strlcpy(as->comment, ct, sizeof(as->comment)); - else if (!strcmp(tt, "GENRE")) - av_strlcpy(as->genre, ct, sizeof(as->genre)); - else if (!strcmp(tt, "TRACKNUMBER")) - as->track = atoi(ct); - else if (!strcmp(tt, "ALBUM")) - av_strlcpy(as->album, ct, sizeof(as->album)); + av_metadata_set(&as->metadata, tt, ct); } } |