diff options
author | Nils Wallménius <nils@rockbox.org> | 2010-12-21 13:35:02 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2010-12-21 13:35:02 +0000 |
commit | 74cc5c77e35713717890ef79efbdd47d810519f4 (patch) | |
tree | 638498bfb9ba7223dcd945c5d5ef3cc1f4904af9 | |
parent | a43fc847c44689409042de68d262c3718af63cf7 (diff) | |
download | rockbox-74cc5c77e35713717890ef79efbdd47d810519f4.tar.gz rockbox-74cc5c77e35713717890ef79efbdd47d810519f4.zip |
aac: put two local structs on the stack as they are small and the codec uses little stack anyway ( < 20% on h300)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28872 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/codecs/aac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/aac.c b/apps/codecs/aac.c index dbc4782505..af403852fb 100644 --- a/apps/codecs/aac.c +++ b/apps/codecs/aac.c | |||
@@ -43,7 +43,7 @@ enum codec_status codec_main(void) | |||
43 | * the sampling frequency). | 43 | * the sampling frequency). |
44 | */ | 44 | */ |
45 | size_t n; | 45 | size_t n; |
46 | static demux_res_t demux_res; | 46 | demux_res_t demux_res; |
47 | stream_t input_stream; | 47 | stream_t input_stream; |
48 | uint32_t sound_samples_done; | 48 | uint32_t sound_samples_done; |
49 | uint32_t elapsed_time; | 49 | uint32_t elapsed_time; |
@@ -55,7 +55,7 @@ enum codec_status codec_main(void) | |||
55 | int needed_bufsize; | 55 | int needed_bufsize; |
56 | unsigned int i; | 56 | unsigned int i; |
57 | unsigned char* buffer; | 57 | unsigned char* buffer; |
58 | static NeAACDecFrameInfo frame_info; | 58 | NeAACDecFrameInfo frame_info; |
59 | NeAACDecHandle decoder; | 59 | NeAACDecHandle decoder; |
60 | int err; | 60 | int err; |
61 | uint32_t s = 0; | 61 | uint32_t s = 0; |