summaryrefslogtreecommitdiff
path: root/apps/codecs.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs.c')
-rw-r--r--apps/codecs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs.c b/apps/codecs.c
index 0301a490d8..804dd2e4e5 100644
--- a/apps/codecs.c
+++ b/apps/codecs.c
@@ -55,8 +55,8 @@
55unsigned char codecbuf[CODEC_SIZE]; 55unsigned char codecbuf[CODEC_SIZE];
56#endif 56#endif
57void *sim_codec_load_ram(char* codecptr, int size, 57void *sim_codec_load_ram(char* codecptr, int size,
58 void* ptr2, int bufwrap, int *pd); 58 void* ptr2, int bufwrap, void **pd);
59void sim_codec_close(int pd); 59void sim_codec_close(void *pd);
60#else 60#else
61#define sim_codec_close(x) 61#define sim_codec_close(x)
62extern unsigned char codecbuf[]; 62extern unsigned char codecbuf[];
@@ -249,10 +249,10 @@ int codec_load_ram(char* codecptr, int size, void* ptr2, int bufwrap,
249 return CODEC_ERROR; 249 return CODEC_ERROR;
250 } 250 }
251#else /* SIMULATOR */ 251#else /* SIMULATOR */
252 int pd; 252 void *pd;
253 253
254 hdr = sim_codec_load_ram(codecptr, size, ptr2, bufwrap, &pd); 254 hdr = sim_codec_load_ram(codecptr, size, ptr2, bufwrap, &pd);
255 if (pd < 0) 255 if (pd == NULL)
256 return CODEC_ERROR; 256 return CODEC_ERROR;
257 257
258 if (hdr == NULL 258 if (hdr == NULL