From 798a4f3533cc63be2b313797bd4be5d53bda8fb9 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Mon, 31 Oct 2005 20:33:27 +0000 Subject: Changes to make libfaad compile in Rockbox. Also remove compiler warnings, use some IRAM (IRAM usage needs reviewing) and drastically reduce the stack usage git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7700 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libfaad/mdct.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/codecs/libfaad/mdct.c') diff --git a/apps/codecs/libfaad/mdct.c b/apps/codecs/libfaad/mdct.c index 78712a0..158ea22 100644 --- a/apps/codecs/libfaad/mdct.c +++ b/apps/codecs/libfaad/mdct.c @@ -60,7 +60,7 @@ mdct_info *faad_mdct_init(uint16_t N) { mdct_info *mdct = (mdct_info*)faad_malloc(sizeof(mdct_info)); - assert(N % 8 == 0); + //assert(N % 8 == 0); mdct->N = N; @@ -123,10 +123,10 @@ void faad_imdct(mdct_info *mdct, real_t *X_in, real_t *X_out) complex_t x; #ifdef ALLOW_SMALL_FRAMELENGTH #ifdef FIXED_POINT - real_t scale, b_scale = 0; + real_t scale = 0, b_scale = 0; #endif #endif - ALIGN complex_t Z1[512]; + ALIGN static complex_t Z1[512]; complex_t *sincos = mdct->sincos; uint16_t N = mdct->N; @@ -230,7 +230,7 @@ void faad_mdct(mdct_info *mdct, real_t *X_in, real_t *X_out) uint16_t k; complex_t x; - ALIGN complex_t Z1[512]; + ALIGN static complex_t Z1[512]; complex_t *sincos = mdct->sincos; uint16_t N = mdct->N; -- cgit v1.1