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
This commit is contained in:
Linus Nielsen Feltzing 2005-08-30 13:01:44 +00:00
parent dffcd15608
commit c4a230c11a

View file

@ -678,8 +678,13 @@ static void setid3v2title(int fd, struct mp3entry *entry)
/* Keep track of the total size */
totframelen = framelen;
if(framelen == 0)
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;