[FFmpeg-cvslog] r9692 - trunk/libavcodec/cook.c

mhoffman subversion
Mon Jul 16 00:06:08 CEST 2007


Author: mhoffman
Date: Mon Jul 16 00:06:08 2007
New Revision: 9692

Log:
moving automatic allocation of joint_decode/decode_buffer
to a statically allocated buffer decode_buffer_0 in cook instance.

Modified:
   trunk/libavcodec/cook.c

Modified: trunk/libavcodec/cook.c
==============================================================================
--- trunk/libavcodec/cook.c	(original)
+++ trunk/libavcodec/cook.c	Mon Jul 16 00:06:08 2007
@@ -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_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;




More information about the ffmpeg-cvslog mailing list