[FFmpeg-cvslog] r9408 - trunk/libavformat/oggparsevorbis.c
mru
subversion
Sun Jun 24 14:12:07 CEST 2007
Author: mru
Date: Sun Jun 24 14:12:04 2007
New Revision: 9408
Log:
use more Vorbis metadata tags
Modified:
trunk/libavformat/oggparsevorbis.c
Modified: trunk/libavformat/oggparsevorbis.c
==============================================================================
--- trunk/libavformat/oggparsevorbis.c (original)
+++ trunk/libavformat/oggparsevorbis.c Sun Jun 24 14:12:04 2007
@@ -88,7 +88,7 @@ vorbis_comment (AVFormatContext * as, ui
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, ui
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));
}
}
More information about the ffmpeg-cvslog
mailing list