diff options
| author | Uwe Freese <thebreaker@rockbox.org> | 2003-03-03 14:05:47 +0000 |
|---|---|---|
| committer | Uwe Freese <thebreaker@rockbox.org> | 2003-03-03 14:05:47 +0000 |
| commit | 21130ebc29053b3f8e8ac43ed1b8b29cb756a0e2 (patch) | |
| tree | 752f6f4dcdd16de5e11272e214f63f841871ed16 | |
| parent | e193604c9bce6fd13564decb22f1bbea33cae917 (diff) | |
| download | rockbox-21130ebc29053b3f8e8ac43ed1b8b29cb756a0e2.zip rockbox-21130ebc29053b3f8e8ac43ed1b8b29cb756a0e2.tar.gz rockbox-21130ebc29053b3f8e8ac43ed1b8b29cb756a0e2.tar.bz2 rockbox-21130ebc29053b3f8e8ac43ed1b8b29cb756a0e2.tar.xz | |
Found the only one point that led to imcompatibility of the CVS code with a 8MB AJB. Finally, CVS is 8 MB-mod compliant. :-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3374 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/mpeg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 87ffe85..9470e7d 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -1696,6 +1696,9 @@ static void mpeg_thread(void) /* Don't read more than until the end of the buffer */ amount_to_read = MIN(mp3buflen - mp3buf_write, amount_to_read); +#if MEM == 8 + amount_to_read = MIN(0x100000, amount_to_read); +#endif /* Read as much mpeg data as we can fit in the buffer */ if(mpeg_file >= 0) |