From 21130ebc29053b3f8e8ac43ed1b8b29cb756a0e2 Mon Sep 17 00:00:00 2001 From: Uwe Freese Date: Mon, 3 Mar 2003 14:05:47 +0000 Subject: 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 --- firmware/mpeg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 87ffe8559b..9470e7d84b 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) -- cgit v1.2.3