summaryrefslogtreecommitdiff
path: root/libavcodec/mpc.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-19 17:21:02 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-19 17:21:02 +0000
commit9adcccde0c9a712a8697e94efe3bbac6d64f46dc (patch)
tree55bf23ebdd7be66e26c0a07136ae4cbdec3b85dd /libavcodec/mpc.c
parent8767fb4caddbae86a48a299d94d353bc82ea98a2 (diff)
mpegaudiodec, mpc and qdm2 all use the same mpa_synth window, so make
them use the same variable/global storage. Saves 4 kB in .bss. Originally committed as revision 20314 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpc.c')
-rw-r--r--libavcodec/mpc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/mpc.c b/libavcodec/mpc.c
index f8fe4c4bc3..dc37df6095 100644
--- a/libavcodec/mpc.c
+++ b/libavcodec/mpc.c
@@ -33,11 +33,9 @@
#include "mpc.h"
#include "mpcdata.h"
-static DECLARE_ALIGNED_16(MPA_INT, mpa_window[512]);
-
void ff_mpc_init(void)
{
- ff_mpa_synth_init(mpa_window);
+ ff_mpa_synth_init(ff_mpa_synth_window);
}
/**
@@ -53,7 +51,7 @@ static void mpc_synth(MPCContext *c, int16_t *out)
samples_ptr = samples + ch;
for(i = 0; i < SAMPLES_PER_BAND; i++) {
ff_mpa_synth_filter(c->synth_buf[ch], &(c->synth_buf_offset[ch]),
- mpa_window, &dither_state,
+ ff_mpa_synth_window, &dither_state,
samples_ptr, 2,
c->sb_samples[ch][i]);
samples_ptr += 64;