summaryrefslogtreecommitdiffstats
path: root/apps/codecs/libmad/synth.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-09-07 23:45:42 +0000
committerJens Arnold <amiconn@rockbox.org>2007-09-07 23:45:42 +0000
commitaebeabdade29ad959f1ed2ae36bafa9c3eed3a48 (patch)
treec74506974e5be5029bf78530b2439eec18a122f1 /apps/codecs/libmad/synth.c
parentb69556f3eb35da3de7dc8f31e1accf7850522f37 (diff)
downloadrockbox-aebeabdade29ad959f1ed2ae36bafa9c3eed3a48.tar.gz
rockbox-aebeabdade29ad959f1ed2ae36bafa9c3eed3a48.zip
Stop libmad from crashing on 64 bit simulators.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14636 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libmad/synth.c')
-rw-r--r--apps/codecs/libmad/synth.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/codecs/libmad/synth.c b/apps/codecs/libmad/synth.c
index 6f5d2ec975..c023f01ae5 100644
--- a/apps/codecs/libmad/synth.c
+++ b/apps/codecs/libmad/synth.c
@@ -589,7 +589,8 @@ static
void synth_full(struct mad_synth *synth, struct mad_frame const *frame,
unsigned int nch, unsigned int ns)
{
- unsigned int phase, ch, s, sb, p;
+ int sb;
+ unsigned int phase, ch, s, p;
mad_fixed_t *pcm, (*filter)[2][2][16][8];
mad_fixed_t const (*sbsample)[36][32];
mad_fixed_t (*fe)[8], (*fx)[8], (*fo)[8];
@@ -1190,8 +1191,8 @@ static
void synth_full(struct mad_synth *synth, struct mad_frame const *frame,
unsigned int nch, unsigned int ns)
{
- int p;
- unsigned int phase, ch, s, sb;
+ int p, sb;
+ unsigned int phase, ch, s;
mad_fixed_t *pcm, (*filter)[2][2][16][8];
mad_fixed_t const (*sbsample)[36][32];
mad_fixed_t (*fe)[8], (*fx)[8], (*fo)[8];