Mercurial > libavformat.hg
diff oggparsevorbis.c @ 2195:ab9e3ecd5583 libavformat
use more Vorbis metadata tags
| author | mru |
|---|---|
| date | Sun, 24 Jun 2007 12:12:04 +0000 |
| parents | b1a13cba29f8 |
| children | 5864dc9a9741 |
line wrap: on
line diff
--- a/oggparsevorbis.c Sun Jun 24 12:11:45 2007 +0000 +++ b/oggparsevorbis.c Sun Jun 24 12:12:04 2007 +0000 @@ -88,7 +88,7 @@ ct[vl] = 0; // took from Vorbis_I_spec - if (!strcmp (tt, "AUTHOR")) + 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)); @@ -100,7 +100,12 @@ av_strlcpy (as->genre, ct, sizeof (as->genre)); else if (!strcmp (tt, "TRACKNUMBER")) as->track = atoi (ct); - //Too bored to add others for today + else if (!strcmp(tt, "ALBUM")) + av_strlcpy(as->album, ct, sizeof(as->album)); + else if (!strcmp(tt, "GENRE")) + av_strlcpy(as->genre, ct, sizeof(as->genre)); + else if (!strcmp(tt, "DESCRIPTION")) + av_strlcpy(as->comment, ct, sizeof(as->comment)); } }
