FAAD2 2.5 uses quite a lot stacks, it makes difficult to run on low stack machines like Nintedno DS.
AAC decoding code on DS just results in frozing by stack overflow.
For example, "element" structure in channel_pair_element function is more than 20000 bytes.
The size of "trans_buf" array in ifilter_bank function is 8192 bytes.
Those large local variable arrays and structures in syntax.c, specrec.c, and filtbank.c was modified to static.
This fix will help low stack application for FAAD2.
TODO: Only part of large local variables was modified. Changing compile options and sound format other than AAC may still contain large local variables. All of the large local variables should be fixed.