diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/mpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 7966625f72..3ca605b365 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c | |||
@@ -738,7 +738,7 @@ static void mpeg_thread(void) | |||
738 | /* Make sure that the write pointer is at a word | 738 | /* Make sure that the write pointer is at a word |
739 | boundary when we reach the end of the file */ | 739 | boundary when we reach the end of the file */ |
740 | if(len < amount_to_read) | 740 | if(len < amount_to_read) |
741 | mp3buf_write = (mp3buf_write + 1) & 0xfffffffe; | 741 | len = (len + 1) & 0xfffffffe; |
742 | 742 | ||
743 | mp3buf_write += len; | 743 | mp3buf_write += len; |
744 | if(mp3buf_write >= mp3buflen) | 744 | if(mp3buf_write >= mp3buflen) |