summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-04-16 19:26:07 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-04-16 19:26:07 +0000
commit8055b48b46d70889f85e5c5c01eb09d42a0a805a (patch)
tree1c291f0cee32c3f2e49cc69b32d1bf0dba998fd6 /apps
parent19f9fd0f5feaf329a6e386eb859e0700b6e8dcc6 (diff)
downloadrockbox-8055b48b46d70889f85e5c5c01eb09d42a0a805a.tar.gz
rockbox-8055b48b46d70889f85e5c5c01eb09d42a0a805a.tar.bz2
rockbox-8055b48b46d70889f85e5c5c01eb09d42a0a805a.zip
Fix yellow.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29725 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs/libalac/alac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/libalac/alac.c b/apps/codecs/libalac/alac.c
index 38fd6e1cdf..8a5c694994 100644
--- a/apps/codecs/libalac/alac.c
+++ b/apps/codecs/libalac/alac.c
@@ -1108,14 +1108,14 @@ int alac_decode_frame(alac_file *alac,
{
int channels;
int outputsamples;
- int input_buffer_start;
+ unsigned char *input_buffer_start;
/* setup the stream */
alac->input_buffer = inbuffer;
alac->input_buffer_bitaccumulator = 0;
/* save to gather byte consumption */
- input_buffer_start = (int)alac->input_buffer;
+ input_buffer_start = alac->input_buffer;
channels = readbits(alac, 3);
@@ -1133,7 +1133,7 @@ int alac_decode_frame(alac_file *alac,
}
/* calculate consumed bytes */
- alac->bytes_consumed = (int)alac->input_buffer - input_buffer_start;
+ alac->bytes_consumed = (int)(alac->input_buffer - input_buffer_start);
alac->bytes_consumed += (alac->input_buffer_bitaccumulator>5) ? 2 : 1;
return outputsamples;