changeset 2737:1e7edb0c6cfc libavformat

Add support for reading WM/Year tag Patch by: patrice bensoussan a free d fr
author andoma
date Wed, 14 Nov 2007 07:31:25 +0000
parents fbc1944cd095
children 1f5c5c223764
files asf.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/asf.c	Wed Nov 14 06:33:35 2007 +0000
+++ b/asf.c	Wed Nov 14 07:31:25 2007 +0000
@@ -399,6 +399,11 @@
                         {
                                 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));