diff options
| author | Michael Giacomelli <giac2000@hotmail.com> | 2009-04-25 03:51:58 +0000 |
|---|---|---|
| committer | Michael Giacomelli <giac2000@hotmail.com> | 2009-04-25 03:51:58 +0000 |
| commit | f5884fdeb6252c77973d0f08ee952bb981f6678c (patch) | |
| tree | cea52389f31d0554fae974119268088ac4b29104 /apps/codecs/libfaad | |
| parent | 87b231c68ce71d247e87ab528b96b05d314357ce (diff) | |
| download | rockbox-f5884fdeb6252c77973d0f08ee952bb981f6678c.zip rockbox-f5884fdeb6252c77973d0f08ee952bb981f6678c.tar.gz rockbox-f5884fdeb6252c77973d0f08ee952bb981f6678c.tar.bz2 rockbox-f5884fdeb6252c77973d0f08ee952bb981f6678c.tar.xz | |
Disable AAC-SBR, AAC-SSR, and AAC-PS on Sansa clip. Clean up warnings introduced by this. Enable compiling the AAC codec on the Clip. Due to lack of memory for seek tables, files over 10 minutes long or so will probably fail.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20781 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libfaad')
| -rw-r--r-- | apps/codecs/libfaad/common.h | 4 | ||||
| -rw-r--r-- | apps/codecs/libfaad/specrec.c | 2 | ||||
| -rw-r--r-- | apps/codecs/libfaad/syntax.c | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/apps/codecs/libfaad/common.h b/apps/codecs/libfaad/common.h index a9c67a5..ea028b1 100644 --- a/apps/codecs/libfaad/common.h +++ b/apps/codecs/libfaad/common.h @@ -86,8 +86,10 @@ extern struct codec_api* ci; /* Allow decoding of MAIN profile AAC */ #define MAIN_DEC +#if MEMORYSIZE > 2 /* Allow decoding of SSR profile AAC */ #define SSR_DEC +#endif /* Allow decoding of LTP profile AAC */ #define LTP_DEC /* Allow decoding of LD profile AAC */ @@ -123,9 +125,11 @@ extern struct codec_api* ci; #undef ERROR_RESILIENCE #endif +#if MEMORYSIZE > 2 #define SBR_DEC //#define SBR_LOW_POWER #define PS_DEC +#endif /* FIXED POINT: No MAIN decoding */ #ifdef FIXED_POINT diff --git a/apps/codecs/libfaad/specrec.c b/apps/codecs/libfaad/specrec.c index 87470f5..de57c4b 100644 --- a/apps/codecs/libfaad/specrec.c +++ b/apps/codecs/libfaad/specrec.c @@ -719,6 +719,8 @@ static uint8_t allocate_single_channel(NeAACDecHandle hDecoder, uint8_t channel, memset(hDecoder->time_out[channel+1], 0, mul*hDecoder->frameLength*sizeof(real_t)); } } +#else + (void)output_channels; /*silence warning when PS disabled*/ #endif if (hDecoder->fb_intermed[channel] == NULL) diff --git a/apps/codecs/libfaad/syntax.c b/apps/codecs/libfaad/syntax.c index 9476029..fa077d4 100644 --- a/apps/codecs/libfaad/syntax.c +++ b/apps/codecs/libfaad/syntax.c @@ -1058,6 +1058,8 @@ static uint8_t fill_element(NeAACDecHandle hDecoder, bitfile *ld, drc_info *drc } #endif } else { +#else + (void)hDecoder; #endif while (count > 0) { |