aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ra288.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-07-28 04:37:58 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-07-28 04:37:58 +0000
commit36826ee0df35beb5c3a22c121be43e876b6868e8 (patch)
treec833a49658d89d48c989a3904e3534c577eb0aab /libavcodec/ra288.c
parent5e707c5905335b36b5a933337e3a2af0fbb6983c (diff)
downloadffmpeg-36826ee0df35beb5c3a22c121be43e876b6868e8.tar.gz
Declare temporary buffers to be only of the necessary size
Originally committed as revision 14451 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r--libavcodec/ra288.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index 443f184c38..a97e5a639b 100644
--- a/libavcodec/ra288.c
+++ b/libavcodec/ra288.c
@@ -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));