summaryrefslogtreecommitdiff
path: root/firmware/mpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/mpeg.c')
-rw-r--r--firmware/mpeg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 969652d259..75a8b56468 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -1229,8 +1229,10 @@ static void mpeg_thread(void)
1229 /* Make sure that the write pointer is at a word 1229 /* Make sure that the write pointer is at a word
1230 boundary when we reach the end of the file */ 1230 boundary when we reach the end of the file */
1231 if (len < amount_to_read) { 1231 if (len < amount_to_read) {
1232 /* skip id3v1 tag */ 1232 /* Skip id3v1 tag */
1233 len -= id3tags[tag_read_idx]->id3.id3v1len; 1233 len -= id3tags[tag_read_idx]->id3.id3v1len;
1234 if(len < 0)
1235 len = 0;
1234 len = (len + 1) & 0xfffffffe; 1236 len = (len + 1) & 0xfffffffe;
1235 } 1237 }
1236 1238