[FFmpeg-cvslog] r11010 - trunk/libavformat/asf.c

andoma subversion
Wed Nov 14 08:31:25 CET 2007


Author: andoma
Date: Wed Nov 14 08:31:25 2007
New Revision: 11010

Log:
Add support for reading WM/Year tag

Patch by: patrice bensoussan a free d fr


Modified:
   trunk/libavformat/asf.c

Modified: trunk/libavformat/asf.c
==============================================================================
--- trunk/libavformat/asf.c	(original)
+++ trunk/libavformat/asf.c	Wed Nov 14 08:31:25 2007
@@ -399,6 +399,11 @@ static int asf_read_header(AVFormatConte
                         {
                                 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));




More information about the ffmpeg-cvslog mailing list