Declare temporary buffers to be only of the necessary size

Originally committed as revision 14451 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Vitor Sessak 2008-07-28 04:37:58 +00:00
parent 5e707c5905
commit 36826ee0df
1 changed files with 3 additions and 3 deletions

View File

@ -171,9 +171,9 @@ static void do_hybrid_window(int order, int n, int non_rec, const float *in,
const float *window)
{
unsigned int x;
float buffer1[37];
float buffer2[37];
float work[111];
float buffer1[order + 1];
float buffer2[order + 1];
float work[order + n + non_rec];
/* update history */
memmove(hist, hist + n, (order + non_rec)*sizeof(*hist));