Add support for reading WM/Year tag

Patch by: patrice bensoussan a free d fr

Originally committed as revision 11010 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Patrice Bensoussan 2007-11-14 07:31:25 +00:00 committed by Andreas Öman
parent bd59786204
commit 0d4e281cac

View File

@ -399,6 +399,11 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
{
if (!strcmp(name,"WM/AlbumTitle")) get_str16_nolen(pb, value_len, s->album, sizeof(s->album));
else if(!strcmp(name,"WM/Genre" )) get_str16_nolen(pb, value_len, s->genre, sizeof(s->genre));
else if(!strcmp(name,"WM/Year" )) {
char year[8];
get_str16_nolen(pb, value_len, year, sizeof(year));
s->year = atoi(year);
}
else if(!strcmp(name,"WM/Track") && s->track == 0) {
char track[8];
get_str16_nolen(pb, value_len, track, sizeof(track));