Commit 78ca701b authored by mru's avatar mru

use more Vorbis metadata tags


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9408 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7069bf88
...@@ -88,7 +88,7 @@ vorbis_comment (AVFormatContext * as, uint8_t *buf, int size) ...@@ -88,7 +88,7 @@ vorbis_comment (AVFormatContext * as, uint8_t *buf, int size)
ct[vl] = 0; ct[vl] = 0;
// took from Vorbis_I_spec // took from Vorbis_I_spec
if (!strcmp (tt, "AUTHOR")) if (!strcmp (tt, "AUTHOR") || !strcmp(tt, "ARTIST"))
av_strlcpy (as->author, ct, sizeof (as->author)); av_strlcpy (as->author, ct, sizeof (as->author));
else if (!strcmp (tt, "TITLE")) else if (!strcmp (tt, "TITLE"))
av_strlcpy (as->title, ct, sizeof (as->title)); av_strlcpy (as->title, ct, sizeof (as->title));
...@@ -100,7 +100,12 @@ vorbis_comment (AVFormatContext * as, uint8_t *buf, int size) ...@@ -100,7 +100,12 @@ vorbis_comment (AVFormatContext * as, uint8_t *buf, int size)
av_strlcpy (as->genre, ct, sizeof (as->genre)); av_strlcpy (as->genre, ct, sizeof (as->genre));
else if (!strcmp (tt, "TRACKNUMBER")) else if (!strcmp (tt, "TRACKNUMBER"))
as->track = atoi (ct); 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));
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment