summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2023-09-19 12:36:02 -0400
committerSolomon Peachy <pizza@shaftnet.org>2023-09-19 12:36:02 -0400
commit3dbf5a97ad3ad8164d07a990e787feece1616f49 (patch)
tree3f3b64a52b5f3efbaddd282b98c8b995e9ff9d1f
parentac82a653bbcd13d95aeb8f5934cc486c7f703152 (diff)
downloadrockbox-3dbf5a97ad.tar.gz
rockbox-3dbf5a97ad.zip
alac: Fix warnings introduced in ac82a653bb
Change-Id: I96fc2b8637cb95c5bd14a6d77fc4b2339c4acd49
-rw-r--r--lib/rbcodec/codecs/alac.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/rbcodec/codecs/alac.c b/lib/rbcodec/codecs/alac.c
index 7139b629b8..0bf354080c 100644
--- a/lib/rbcodec/codecs/alac.c
+++ b/lib/rbcodec/codecs/alac.c
@@ -25,7 +25,7 @@
CODEC_HEADER
-/* The maximum buffer size handled. This amount of bytes is buffered for each
+/* The maximum buffer size handled. This amount of bytes is buffered for each
* frame. */
#define ALAC_BYTE_BUFFER_SIZE 32768
@@ -57,14 +57,14 @@ enum codec_status codec_run(void)
stream_t input_stream;
uint64_t samplesdone;
int samplesdecoded;
- unsigned int i;
+ uint32_t i;
unsigned char* buffer;
alac_file alac;
intptr_t param;
unsigned long resume_time;
uint32_t resume_offset;
unsigned int did_resume;
- int lookup_table_idx = 0;
+ uint32_t lookup_table_idx = 0;
/* Clean and initialize decoder structures */
memset(&demux_res , 0, sizeof(demux_res));
@@ -97,10 +97,10 @@ enum codec_status codec_run(void)
if (resume_time)
did_resume = m4a_seek(&demux_res, &input_stream,
(uint64_t)resume_time * ci->id3->frequency / 1000ULL,
- &samplesdone, (int *) &i, &lookup_table_idx);
+ &samplesdone, &i, &lookup_table_idx);
else if (resume_offset)
did_resume = m4a_seek_raw(&demux_res, &input_stream, resume_offset,
- &samplesdone, (int *) &i, &lookup_table_idx);
+ &samplesdone, &i, &lookup_table_idx);
else
did_resume = 0;
@@ -123,7 +123,7 @@ enum codec_status codec_run(void)
if (action == CODEC_ACTION_SEEK_TIME) {
if (m4a_seek(&demux_res, &input_stream,
(uint64_t)param * ci->id3->frequency / 1000ULL,
- &samplesdone, (int *) &i, &lookup_table_idx))
+ &samplesdone, &i, &lookup_table_idx))
set_elapsed_samples(samplesdone);
ci->seek_complete();