From 1ec91da5e03151efd1b3837d21f869aa218a94bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Wed, 14 Aug 2002 10:30:18 +0000 Subject: [PATCH] Skip id3v1 tag when loading mp3 data git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1730 a1c6a512-1295-4272-9138-f99709370657 --- firmware/mpeg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/mpeg.c b/firmware/mpeg.c index fed755b7f8..b6a661f778 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -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)