summaryrefslogtreecommitdiff
path: root/apps/codecs/lib
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-03-03 02:27:19 +0000
committerJens Arnold <amiconn@rockbox.org>2006-03-03 02:27:19 +0000
commit8aa5bd11b21dd85cb0fadebeeb7c506f85237266 (patch)
tree845426bf3ab2855714125f9c12dd26f1c4022677 /apps/codecs/lib
parent8ac3ae73c5f5a87dc4cddafe2b0d1a0f41e41bdd (diff)
downloadrockbox-8aa5bd11b21dd85cb0fadebeeb7c506f85237266.tar.gz
rockbox-8aa5bd11b21dd85cb0fadebeeb7c506f85237266.zip
Long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8891 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/lib')
-rw-r--r--apps/codecs/lib/codeclib.c6
-rw-r--r--apps/codecs/lib/codeclib.h4
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
27struct codec_api *local_rb; 27struct codec_api *local_rb;
28 28
29int mem_ptr; 29long mem_ptr;
30int bufsize; 30long bufsize;
31unsigned char* mp3buf; // The actual MP3 buffer from Rockbox 31unsigned char* mp3buf; // The actual MP3 buffer from Rockbox
32unsigned char* mallocbuf; // 512K from the start of MP3 buffer 32unsigned char* mallocbuf; // 512K from the start of MP3 buffer
33unsigned char* filebuf; // The rest of the MP3 buffer 33unsigned 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
27extern int mem_ptr; 27extern long mem_ptr;
28extern int bufsize; 28extern long bufsize;
29extern unsigned char* mp3buf; // The actual MP3 buffer from Rockbox 29extern unsigned char* mp3buf; // The actual MP3 buffer from Rockbox
30extern unsigned char* mallocbuf; // 512K from the start of MP3 buffer 30extern unsigned char* mallocbuf; // 512K from the start of MP3 buffer
31extern unsigned char* filebuf; // The rest of the MP3 buffer 31extern unsigned char* filebuf; // The rest of the MP3 buffer