diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/codecs/lib/codeclib.c | 6 | ||||
-rw-r--r-- | apps/codecs/lib/codeclib.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/codecs/lib/codeclib.c b/apps/codecs/lib/codeclib.c index 917970ba8d..e6780c68fe 100644 --- a/apps/codecs/lib/codeclib.c +++ b/apps/codecs/lib/codeclib.c | |||
@@ -26,8 +26,8 @@ | |||
26 | 26 | ||
27 | struct codec_api *local_rb; | 27 | struct codec_api *local_rb; |
28 | 28 | ||
29 | int mem_ptr; | 29 | long mem_ptr; |
30 | int bufsize; | 30 | long bufsize; |
31 | unsigned char* mp3buf; // The actual MP3 buffer from Rockbox | 31 | unsigned char* mp3buf; // The actual MP3 buffer from Rockbox |
32 | unsigned char* mallocbuf; // 512K from the start of MP3 buffer | 32 | unsigned char* mallocbuf; // 512K from the start of MP3 buffer |
33 | unsigned char* filebuf; // The rest of the MP3 buffer | 33 | unsigned char* filebuf; // The rest of the MP3 buffer |
@@ -56,7 +56,7 @@ void* codec_malloc(size_t size) | |||
56 | { | 56 | { |
57 | void* x; | 57 | void* x; |
58 | 58 | ||
59 | if (mem_ptr + (int)size > bufsize) | 59 | if (mem_ptr + (long)size > bufsize) |
60 | return NULL; | 60 | return NULL; |
61 | 61 | ||
62 | x=&mallocbuf[mem_ptr]; | 62 | x=&mallocbuf[mem_ptr]; |
diff --git a/apps/codecs/lib/codeclib.h b/apps/codecs/lib/codeclib.h index c2e7869aa4..00b60c3e92 100644 --- a/apps/codecs/lib/codeclib.h +++ b/apps/codecs/lib/codeclib.h | |||
@@ -24,8 +24,8 @@ | |||
24 | 24 | ||
25 | #define MALLOC_BUFSIZE (512*1024) | 25 | #define MALLOC_BUFSIZE (512*1024) |
26 | 26 | ||
27 | extern int mem_ptr; | 27 | extern long mem_ptr; |
28 | extern int bufsize; | 28 | extern long bufsize; |
29 | extern unsigned char* mp3buf; // The actual MP3 buffer from Rockbox | 29 | extern unsigned char* mp3buf; // The actual MP3 buffer from Rockbox |
30 | extern unsigned char* mallocbuf; // 512K from the start of MP3 buffer | 30 | extern unsigned char* mallocbuf; // 512K from the start of MP3 buffer |
31 | extern unsigned char* filebuf; // The rest of the MP3 buffer | 31 | extern unsigned char* filebuf; // The rest of the MP3 buffer |