[FFmpeg-cvslog] r12346 - trunk/libavformat/asf.c
michael
subversion
Thu Mar 6 01:20:50 CET 2008
Author: michael
Date: Thu Mar 6 01:20:49 2008
New Revision: 12346
Log:
simplify
Modified:
trunk/libavformat/asf.c
Modified: trunk/libavformat/asf.c
==============================================================================
--- trunk/libavformat/asf.c (original)
+++ trunk/libavformat/asf.c Thu Mar 6 01:20:49 2008
@@ -389,7 +389,7 @@ static int asf_read_header(AVFormatConte
get_str16_nolen(pb, name_len, name, sizeof(name));
value_type = get_le16(pb);
value_len = get_le16(pb);
- if ((value_type == 0) || (value_type == 1)) // unicode or byte
+ if (value_type <= 1) // unicode or byte
{
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));
@@ -410,7 +410,7 @@ static int asf_read_header(AVFormatConte
}
else url_fskip(pb, value_len);
}
- if ((value_type >= 2) && (value_type <= 5)) // boolean or DWORD or QWORD or WORD
+ else if (value_type <= 5) // boolean or DWORD or QWORD or WORD
{
value_num= get_value(pb, value_type);
if (!strcmp(name,"WM/Track" ) && s->track == 0) s->track = value_num + 1;
More information about the ffmpeg-cvslog
mailing list