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) /* Make sure that the write pointer is at a word boundary when we reach the end of the file */ if (len < amount_to_read) { - /* skip id3v1 tag */ + /* Skip id3v1 tag */ len -= id3tags[tag_read_idx]->id3.id3v1len; + if(len < 0) + len = 0; len = (len + 1) & 0xfffffffe; }