aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/asf.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-01-22 12:33:10 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-01-22 12:33:10 +0000
commit5e2a485507365061275e7418b3307a3dde9b9c81 (patch)
treeff568086201624682959c86616d110dcd2b0780a /libavformat/asf.c
parent4c6f7440afcf8cc302ff421c6c9feaf65a7e0fab (diff)
downloadffmpeg-5e2a485507365061275e7418b3307a3dde9b9c81.tar.gz
10l
Originally committed as revision 7647 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf.c')
-rw-r--r--libavformat/asf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/asf.c b/libavformat/asf.c
index 161aa58039..bd4b8e1ce1 100644
--- a/libavformat/asf.c
+++ b/libavformat/asf.c
@@ -347,8 +347,9 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
value_len = get_le16(pb);
if ((value_type == 0) || (value_type == 1)) // unicode or byte
{
- if (!strcmp(name,"WM/AlbumTitle")) get_str16_nolen(pb, value_len, s->album, sizeof(s->album));
- if (!strcmp(name,"WM/Genre" )) get_str16_nolen(pb, value_len, s->genre, sizeof(s->genre));
+ 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 url_fskip(pb, value_len);
}
if ((value_type >= 2) && (value_type <= 5)) // boolean or DWORD or QWORD or WORD
{