changeset 5342:887509b42d3f libavcodec

moving automatic allocation of joint_decode/decode_buffer to a statically allocated buffer decode_buffer_0 in cook instance.
author mhoffman
date Sun, 15 Jul 2007 22:06:08 +0000
parents b42bcc94b97c
children 1aa26b974dc3
files cook.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cook.c	Sun Jul 15 21:48:17 2007 +0000
+++ b/cook.c	Sun Jul 15 22:06:08 2007 +0000
@@ -121,6 +121,7 @@
     float               mono_previous_buffer2[1024];
     float               decode_buffer_1[1024];
     float               decode_buffer_2[1024];
+    float               decode_buffer_0[1060]; /* static allocation for joint decode */
 } COOKContext;
 
 /* debug functions */
@@ -753,7 +754,7 @@
                          float* mlt_buffer2) {
     int i,j;
     int decouple_tab[SUBBAND_SIZE];
-    float decode_buffer[1060];
+    float *decode_buffer = q->decode_buffer_0;
     int idx, cpl_tmp,tmp_idx;
     float f1,f2;
     float* cplscale;