# HG changeset patch # User aurel # Date 1234395297 0 # Node ID 01e54ebe6ef7c848f27102c70fba293ac148085f # Parent 7d1460900c5906ecbbc3890994ff5ba8ba995ee7 use new metadata API in ogg/vorbis demuxer diff -r 7d1460900c59 -r 01e54ebe6ef7 oggparsevorbis.c --- a/oggparsevorbis.c Wed Feb 11 21:11:19 2009 +0000 +++ b/oggparsevorbis.c Wed Feb 11 23:34:57 2009 +0000 @@ -81,21 +81,7 @@ 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); } }