summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-03-13 22:55:47 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-03-13 22:55:47 +0000
commita85a52589346ae3a5c0162a98c3c038f79eaecbd (patch)
treeabb5d521fd19a54f89cc80b733988970ef6ecbad
parent0499ffb7746d7a805f73c7249760ee067738edb3 (diff)
downloadrockbox-a85a52589346ae3a5c0162a98c3c038f79eaecbd.tar.gz
rockbox-a85a52589346ae3a5c0162a98c3c038f79eaecbd.tar.bz2
rockbox-a85a52589346ae3a5c0162a98c3c038f79eaecbd.zip
Skipping unknown ID3V2 frames didn't work as expected with global unsynch. This fixes bug report #887332.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4379 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/id3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/id3.c b/firmware/id3.c
index 3a87fc49c5..2f841a9c46 100644
--- a/firmware/id3.c
+++ b/firmware/id3.c
@@ -640,7 +640,7 @@ static void setid3v2title(int fd, struct mp3entry *entry)
skip it using the total size */
if(global_unsynch && version <= ID3_VER_2_3) {
- skip_unsynched(fd, totframelen);
+ size -= skip_unsynched(fd, totframelen);
} else {
if(data_length_ind)
totframelen = data_length_ind;