diff options
author | Patrice Bensoussan <patrice.bensoussan@free.fr> | 2007-11-14 07:31:25 +0000 |
---|---|---|
committer | Andreas Ă–man <andreas@lonelycoder.com> | 2007-11-14 07:31:25 +0000 |
commit | 0d4e281cac9c3f72f048c9f23d7724c499483fb0 (patch) | |
tree | 01dca80eeaad520d8677351ef73d3406a144a00c /libavformat/asf.c | |
parent | bd59786204ce9f7e3b7f28dd5c6df2643bf423c2 (diff) | |
download | ffmpeg-0d4e281cac9c3f72f048c9f23d7724c499483fb0.tar.gz |
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
Diffstat (limited to 'libavformat/asf.c')
-rw-r--r-- | libavformat/asf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/asf.c b/libavformat/asf.c index 56272d9fa5..47277dfbac 100644 --- a/libavformat/asf.c +++ b/libavformat/asf.c @@ -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)); |