From 74cc5c77e35713717890ef79efbdd47d810519f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Tue, 21 Dec 2010 13:35:02 +0000 Subject: [PATCH] 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 --- apps/codecs/aac.c | 4 ++-- 1 file 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) * 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;