summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-07-02 04:40:24 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-07-02 04:40:24 +0000
commit1e5327eee0b24f630adbf70a2aa775236093c733 (patch)
treeb6872187876b110df49d77c603c91a5982a908b4
parentbcbe317565f91f2f0f10186dfa32c8847f58df9f (diff)
downloadrockbox-1e5327eee0b24f630adbf70a2aa775236093c733.tar.gz
rockbox-1e5327eee0b24f630adbf70a2aa775236093c733.zip
Fix red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27232 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs/aac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/codecs/aac.c b/apps/codecs/aac.c
index 0c9aceed09..4bc6ffb2f9 100644
--- a/apps/codecs/aac.c
+++ b/apps/codecs/aac.c
@@ -120,10 +120,12 @@ next_track:
* we do not use the IRAM buffer and keep faad's internal allocation (see
* specrec.c). */
needed_bufsize = decoder->frameLength;
+#ifdef SBR_DEC
if ((decoder->sbr_present_flag == 1) || (decoder->forceUpSampling == 1))
{
needed_bufsize *= 2;
}
+#endif
if (needed_bufsize <= GB_BUF_SIZE)
{
decoder->time_out[0] = &gb_time_buffer[0][0];