mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-10 03:32:22 +08:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user