Skip id3v1 tag when loading mp3 data

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1730 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-08-14 10:30:18 +00:00
parent 66f9bccd47
commit 1ec91da5e0

View file

@ -932,8 +932,11 @@ static void mpeg_thread(void)
/* Make sure that the write pointer is at a word
boundary when we reach the end of the file */
if(len < amount_to_read)
if (len < amount_to_read) {
/* skip id3v1 tag */
len -= id3tags[tag_read_idx]->id3.id3v1len;
len = (len + 1) & 0xfffffffe;
}
mp3buf_write += len;
if(mp3buf_write >= mp3buflen)