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
This commit is contained in:
Reimar Döffinger
2009-10-19 17:21:02 +00:00
parent 8767fb4cad
commit 9adcccde0c
4 changed files with 8 additions and 11 deletions

View File

@ -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;