summaryrefslogtreecommitdiff
path: root/libavformat/oggparsevorbis.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-06-24 12:12:04 +0000
committerMåns Rullgård <mans@mansr.com>2007-06-24 12:12:04 +0000
commitd66c30adecabc01c3764eda7ba489423259503c5 (patch)
tree025e347f6a827e07a97befe90513b8bbcf2cbe76 /libavformat/oggparsevorbis.c
parentd367783979325c9460163b16fed84e0db2f4a5eb (diff)
use more Vorbis metadata tags
Originally committed as revision 9408 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggparsevorbis.c')
-rw-r--r--libavformat/oggparsevorbis.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index a03581a05c..0020c3f6cc 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -88,7 +88,7 @@ vorbis_comment (AVFormatContext * as, uint8_t *buf, int size)
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 @@ vorbis_comment (AVFormatContext * as, uint8_t *buf, int size)
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));
}
}