Commit e7b0cdf5 authored by mhoffman's avatar mhoffman

moving automatic allocation of joint_decode/decode_buffer

to a statically allocated buffer decode_buffer_0 in cook instance.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9692 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6a34b714
...@@ -121,6 +121,7 @@ typedef struct { ...@@ -121,6 +121,7 @@ typedef struct {
float mono_previous_buffer2[1024]; float mono_previous_buffer2[1024];
float decode_buffer_1[1024]; float decode_buffer_1[1024];
float decode_buffer_2[1024]; float decode_buffer_2[1024];
float decode_buffer_0[1060]; /* static allocation for joint decode */
} COOKContext; } COOKContext;
/* debug functions */ /* debug functions */
...@@ -753,7 +754,7 @@ static void joint_decode(COOKContext *q, float* mlt_buffer1, ...@@ -753,7 +754,7 @@ static void joint_decode(COOKContext *q, float* mlt_buffer1,
float* mlt_buffer2) { float* mlt_buffer2) {
int i,j; int i,j;
int decouple_tab[SUBBAND_SIZE]; int decouple_tab[SUBBAND_SIZE];
float decode_buffer[1060]; float *decode_buffer = q->decode_buffer_0;
int idx, cpl_tmp,tmp_idx; int idx, cpl_tmp,tmp_idx;
float f1,f2; float f1,f2;
float* cplscale; float* cplscale;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment