Mercurial > libavcodec.hg
diff mpc.c @ 10440:899237b1961f libavcodec
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.
author | reimar |
---|---|
date | Mon, 19 Oct 2009 17:21:02 +0000 |
parents | 0dce4fe6e6f3 |
children | 7dd2a45249a9 |
line wrap: on
line diff
--- a/mpc.c Mon Oct 19 15:51:34 2009 +0000 +++ b/mpc.c Mon Oct 19 17:21:02 2009 +0000 @@ -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 @@ 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;