1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: apps/codecs/wmapro.c
===================================================================
--- apps/codecs/wmapro.c	(revision 27461)
+++ apps/codecs/wmapro.c	(working copy)
@@ -28,8 +28,10 @@
 #define MAXSAMPLES  (1L << 12)  /* Max number of samples in a wma pro subframe */
 #define MAXCHANNELS 8
 #define BUFSIZE     MAXCHANNELS * MAXSAMPLES
-int32_t decoded[BUFSIZE];

+/* Still no multi-channel, so allocate only enough memory for 2 channels */
+int32_t decoded[BUFSIZE/4] IBSS_ATTR;
+
 /* this is the codec entry point */
 enum codec_status codec_main(void)
 {