summaryrefslogtreecommitdiff
path: root/apps/metadata/wave.c
diff options
context:
space:
mode:
authorYoshihisa Uchida <uchida@rockbox.org>2010-05-10 11:13:17 +0000
committerYoshihisa Uchida <uchida@rockbox.org>2010-05-10 11:13:17 +0000
commit90de864d890c63615b269fee4493867046e8c9dc (patch)
treebe46149390c3eefa4c9b82cf7fda85182b8ed934 /apps/metadata/wave.c
parentb24fac4ca60c05c24ad117ff8a4d8df1d9e8ede6 (diff)
chunksize decreases 4 bytes regardless wave/wave64.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25926 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata/wave.c')
-rw-r--r--apps/metadata/wave.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/metadata/wave.c b/apps/metadata/wave.c
index 42203e9524..5401b68146 100644
--- a/apps/metadata/wave.c
+++ b/apps/metadata/wave.c
@@ -251,8 +251,9 @@ static void parse_list_chunk(int fd, struct mp3entry* id3, int chunksize, bool i
lseek(fd, 4, SEEK_CUR);
else if (read(fd, bp, 4) < 4 || memcmp(bp, "INFO", 4))
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);
if (infosize <= 8)