diff options
-rw-r--r-- | apps/codecs/a52.c | 2 | ||||
-rw-r--r-- | apps/codecs/aac.c | 2 | ||||
-rw-r--r-- | apps/codecs/aiff.c | 4 | ||||
-rw-r--r-- | apps/codecs/alac.c | 2 | ||||
-rw-r--r-- | apps/codecs/flac.c | 2 | ||||
-rw-r--r-- | apps/codecs/mpa.c | 2 | ||||
-rw-r--r-- | apps/codecs/shorten.c | 2 | ||||
-rw-r--r-- | apps/codecs/wav.c | 4 |
8 files changed, 10 insertions, 10 deletions
diff --git a/apps/codecs/a52.c b/apps/codecs/a52.c index 0c3f507914..5a55d8bcc8 100644 --- a/apps/codecs/a52.c +++ b/apps/codecs/a52.c | |||
@@ -128,7 +128,7 @@ extern char iend[]; | |||
128 | /* this is the codec entry point */ | 128 | /* this is the codec entry point */ |
129 | enum codec_status codec_start(struct codec_api *api) | 129 | enum codec_status codec_start(struct codec_api *api) |
130 | { | 130 | { |
131 | long n; | 131 | size_t n; |
132 | unsigned char *filebuf; | 132 | unsigned char *filebuf; |
133 | int sample_loc; | 133 | int sample_loc; |
134 | int retval; | 134 | int retval; |
diff --git a/apps/codecs/aac.c b/apps/codecs/aac.c index 84f2a90625..ddaa07c645 100644 --- a/apps/codecs/aac.c +++ b/apps/codecs/aac.c | |||
@@ -146,7 +146,7 @@ enum codec_status codec_start(struct codec_api* api) | |||
146 | } | 146 | } |
147 | 147 | ||
148 | /* Request the required number of bytes from the input buffer */ | 148 | /* Request the required number of bytes from the input buffer */ |
149 | buffer=ci->request_buffer((long*)&n,sample_byte_size); | 149 | buffer=ci->request_buffer(&n,sample_byte_size); |
150 | 150 | ||
151 | /* Decode one block - returned samples will be host-endian */ | 151 | /* Decode one block - returned samples will be host-endian */ |
152 | rb->yield(); | 152 | rb->yield(); |
diff --git a/apps/codecs/aiff.c b/apps/codecs/aiff.c index 5549d63239..144f4627bb 100644 --- a/apps/codecs/aiff.c +++ b/apps/codecs/aiff.c | |||
@@ -95,7 +95,7 @@ next_track: | |||
95 | ci->yield(); | 95 | ci->yield(); |
96 | 96 | ||
97 | /* assume the AIFF header is less than 1024 bytes */ | 97 | /* assume the AIFF header is less than 1024 bytes */ |
98 | buf = ci->request_buffer((long *)&n, 1024); | 98 | buf = ci->request_buffer(&n, 1024); |
99 | if (n < 44) { | 99 | if (n < 44) { |
100 | i = CODEC_ERROR; | 100 | i = CODEC_ERROR; |
101 | goto exit; | 101 | goto exit; |
@@ -235,7 +235,7 @@ next_track: | |||
235 | bytesdone = newpos; | 235 | bytesdone = newpos; |
236 | ci->seek_complete(); | 236 | ci->seek_complete(); |
237 | } | 237 | } |
238 | aifbuf = (uint8_t *)ci->request_buffer((long *)&n, chunksize); | 238 | aifbuf = (uint8_t *)ci->request_buffer(&n, chunksize); |
239 | 239 | ||
240 | if (n == 0) | 240 | if (n == 0) |
241 | break; /* End of stream */ | 241 | break; /* End of stream */ |
diff --git a/apps/codecs/alac.c b/apps/codecs/alac.c index a1c4f41683..df256a36b4 100644 --- a/apps/codecs/alac.c +++ b/apps/codecs/alac.c | |||
@@ -126,7 +126,7 @@ enum codec_status codec_start(struct codec_api* api) | |||
126 | 126 | ||
127 | /* Request the required number of bytes from the input buffer */ | 127 | /* Request the required number of bytes from the input buffer */ |
128 | 128 | ||
129 | buffer=ci->request_buffer((long*)&n,sample_byte_size); | 129 | buffer=ci->request_buffer(&n,sample_byte_size); |
130 | if (n!=sample_byte_size) { | 130 | if (n!=sample_byte_size) { |
131 | retval = CODEC_ERROR; | 131 | retval = CODEC_ERROR; |
132 | goto exit; | 132 | goto exit; |
diff --git a/apps/codecs/flac.c b/apps/codecs/flac.c index f95ae2a8ce..2eec4da47d 100644 --- a/apps/codecs/flac.c +++ b/apps/codecs/flac.c | |||
@@ -226,7 +226,7 @@ enum codec_status codec_start(struct codec_api* api) | |||
226 | FLACContext fc; | 226 | FLACContext fc; |
227 | uint32_t samplesdone; | 227 | uint32_t samplesdone; |
228 | uint32_t elapsedtime; | 228 | uint32_t elapsedtime; |
229 | long bytesleft; | 229 | size_t bytesleft; |
230 | int consumed; | 230 | int consumed; |
231 | int res; | 231 | int res; |
232 | int frame; | 232 | int frame; |
diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c index d21730ff79..787d669f32 100644 --- a/apps/codecs/mpa.c +++ b/apps/codecs/mpa.c | |||
@@ -92,7 +92,7 @@ void init_mad(void) | |||
92 | enum codec_status codec_start(struct codec_api *api) | 92 | enum codec_status codec_start(struct codec_api *api) |
93 | { | 93 | { |
94 | int status = CODEC_OK; | 94 | int status = CODEC_OK; |
95 | long size; | 95 | size_t size; |
96 | int file_end; | 96 | int file_end; |
97 | int frame_skip; /* samples to skip current frame */ | 97 | int frame_skip; /* samples to skip current frame */ |
98 | int samples_to_skip; /* samples to skip in total for this file (at start) */ | 98 | int samples_to_skip; /* samples to skip in total for this file (at start) */ |
diff --git a/apps/codecs/shorten.c b/apps/codecs/shorten.c index 6053742562..2cfb4c9e3a 100644 --- a/apps/codecs/shorten.c +++ b/apps/codecs/shorten.c | |||
@@ -49,7 +49,7 @@ enum codec_status codec_start(struct codec_api* api) | |||
49 | uint32_t elapsedtime; | 49 | uint32_t elapsedtime; |
50 | int8_t *buf; | 50 | int8_t *buf; |
51 | int consumed, res, nsamples; | 51 | int consumed, res, nsamples; |
52 | long bytesleft; | 52 | size_t bytesleft; |
53 | 53 | ||
54 | /* Generic codec initialisation */ | 54 | /* Generic codec initialisation */ |
55 | rb = api; | 55 | rb = api; |
diff --git a/apps/codecs/wav.c b/apps/codecs/wav.c index 2bde1c29a5..70d414482b 100644 --- a/apps/codecs/wav.c +++ b/apps/codecs/wav.c | |||
@@ -258,7 +258,7 @@ next_track: | |||
258 | ci->yield(); | 258 | ci->yield(); |
259 | 259 | ||
260 | /* assume the WAV header is less than 1024 bytes */ | 260 | /* assume the WAV header is less than 1024 bytes */ |
261 | buf = ci->request_buffer((long *)&n, 1024); | 261 | buf = ci->request_buffer(&n, 1024); |
262 | if (n < 44) { | 262 | if (n < 44) { |
263 | i = CODEC_ERROR; | 263 | i = CODEC_ERROR; |
264 | goto exit; | 264 | goto exit; |
@@ -449,7 +449,7 @@ next_track: | |||
449 | bytesdone = newpos; | 449 | bytesdone = newpos; |
450 | ci->seek_complete(); | 450 | ci->seek_complete(); |
451 | } | 451 | } |
452 | wavbuf = (uint8_t *)ci->request_buffer((long *)&n, chunksize); | 452 | wavbuf = (uint8_t *)ci->request_buffer(&n, chunksize); |
453 | 453 | ||
454 | if (n == 0) | 454 | if (n == 0) |
455 | break; /* End of stream */ | 455 | break; /* End of stream */ |