1
0
Fork 0
forked from len0rd/rockbox

chunksize decreases 4 bytes regardless wave/wave64.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25926 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Yoshihisa Uchida 2010-05-10 11:13:17 +00:00
parent b24fac4ca6
commit 90de864d89

View file

@ -251,8 +251,9 @@ static void parse_list_chunk(int fd, struct mp3entry* id3, int chunksize, bool i
lseek(fd, 4, SEEK_CUR); lseek(fd, 4, SEEK_CUR);
else if (read(fd, bp, 4) < 4 || memcmp(bp, "INFO", 4)) else if (read(fd, bp, 4) < 4 || memcmp(bp, "INFO", 4))
return; return;
else
chunksize -= 4; /* don't include "INFO" tag in chunksize */ /* decrease skip bytes */
chunksize -= 4;
infosize = read(fd, bp, (ID3V2_BUF_SIZE > chunksize)? chunksize : ID3V2_BUF_SIZE); infosize = read(fd, bp, (ID3V2_BUF_SIZE > chunksize)? chunksize : ID3V2_BUF_SIZE);
if (infosize <= 8) if (infosize <= 8)