diff options
| author | Dave Chapman <dave@dchapman.com> | 2005-10-31 20:33:27 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2005-10-31 20:33:27 +0000 |
| commit | 798a4f3533cc63be2b313797bd4be5d53bda8fb9 (patch) | |
| tree | 0e2b8bdeff50b3d0a1cbe73c591f97ef73179b65 /apps/codecs/libfaad/mdct.c | |
| parent | 65de1cc6af31f547bd36d320f09cbcc6e6975421 (diff) | |
| download | rockbox-798a4f3533cc63be2b313797bd4be5d53bda8fb9.zip rockbox-798a4f3533cc63be2b313797bd4be5d53bda8fb9.tar.gz rockbox-798a4f3533cc63be2b313797bd4be5d53bda8fb9.tar.bz2 rockbox-798a4f3533cc63be2b313797bd4be5d53bda8fb9.tar.xz | |
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
Diffstat (limited to 'apps/codecs/libfaad/mdct.c')
| -rw-r--r-- | apps/codecs/libfaad/mdct.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |