summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMarc Hoffman <mmhoffm@gmail.com>2007-07-15 22:06:08 +0000
committerMarc Hoffman <mmhoffm@gmail.com>2007-07-15 22:06:08 +0000
commit8c9d2954f7395f864261a28289d1aadd316777ca (patch)
treeccbcda3abd165ee240916520fe5e0a9239ec6708 /libavcodec
parent2843a452c9bc492fd54c21abd1e420528248ece7 (diff)
moving automatic allocation of joint_decode/decode_buffer
to a statically allocated buffer decode_buffer_0 in cook instance. Originally committed as revision 9692 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/cook.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index 8a84470e6d..d2e48c45c5 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -121,6 +121,7 @@ typedef struct {
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 @@ static void joint_decode(COOKContext *q, float* mlt_buffer1,
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;