summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-08-30 13:01:44 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-08-30 13:01:44 +0000
commitc4a230c11ac0cee8562c62be049a73494bd2d3c2 (patch)
treeb4e78062f6c77b282a80cdfad0d84343b6411bbe /firmware
parentdffcd1560858e0262a798e323da0170574fa2641 (diff)
downloadrockbox-c4a230c11ac0cee8562c62be049a73494bd2d3c2.tar.gz
rockbox-c4a230c11ac0cee8562c62be049a73494bd2d3c2.zip
Patch #1161046 by Bryan Vandyke - id3v2 frames with size 0 may cause rockbox to miss tags
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7426 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/id3.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/firmware/id3.c b/firmware/id3.c
index 8685d86790..dde030ec8a 100644
--- a/firmware/id3.c
+++ b/firmware/id3.c
@@ -677,9 +677,14 @@ static void setid3v2title(int fd, struct mp3entry *entry)
/* Keep track of the total size */
totframelen = framelen;
-
- if(framelen == 0)
- return;
+
+ DEBUGF("framelen = %d\n", framelen);
+ if(framelen == 0){
+ if (header[0] == 0 && header[1] == 0 && header[2] == 0)
+ return;
+ else
+ continue;
+ }
unsynch = false;
data_length_ind = 0;