# HG changeset patch # User mhoffman # Date 1184537168 0 # Node ID 887509b42d3f54e3517d21c39270adc86eea2ab2 # Parent b42bcc94b97c2c77f1472e36477b14473f000694 moving automatic allocation of joint_decode/decode_buffer to a statically allocated buffer decode_buffer_0 in cook instance. diff -r b42bcc94b97c -r 887509b42d3f cook.c --- 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;