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:
parent
b24fac4ca6
commit
90de864d89
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue