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 /apps/codecs | |
| parent | a43fc847c44689409042de68d262c3718af63cf7 (diff) | |
| download | rockbox-74cc5c77e35713717890ef79efbdd47d810519f4.zip rockbox-74cc5c77e35713717890ef79efbdd47d810519f4.tar.gz rockbox-74cc5c77e35713717890ef79efbdd47d810519f4.tar.bz2 rockbox-74cc5c77e35713717890ef79efbdd47d810519f4.tar.xz | |
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
Diffstat (limited to 'apps/codecs')
| -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 dbc4782..af40385 100644 --- a/apps/codecs/aac.c +++ b/apps/codecs/aac.c @@ -43,7 +43,7 @@ enum codec_status codec_main(void) * the sampling frequency). */ size_t n; - static demux_res_t demux_res; + demux_res_t demux_res; stream_t input_stream; uint32_t sound_samples_done; uint32_t elapsed_time; @@ -55,7 +55,7 @@ enum codec_status codec_main(void) int needed_bufsize; unsigned int i; unsigned char* buffer; - static NeAACDecFrameInfo frame_info; + NeAACDecFrameInfo frame_info; NeAACDecHandle decoder; int err; uint32_t s = 0; |