diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-19 17:21:02 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-19 17:21:02 +0000 |
commit | 9adcccde0c9a712a8697e94efe3bbac6d64f46dc (patch) | |
tree | 55bf23ebdd7be66e26c0a07136ae4cbdec3b85dd /libavcodec/qdm2.c | |
parent | 8767fb4caddbae86a48a299d94d353bc82ea98a2 (diff) | |
download | ffmpeg-9adcccde0c9a712a8697e94efe3bbac6d64f46dc.tar.gz |
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/qdm2.c')
-rw-r--r-- | libavcodec/qdm2.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c index df1479c25e..4dc76126da 100644 --- a/libavcodec/qdm2.c +++ b/libavcodec/qdm2.c @@ -219,8 +219,6 @@ static uint8_t random_dequant_index[256][5]; static uint8_t random_dequant_type24[128][3]; static float noise_samples[128]; -static DECLARE_ALIGNED_16(MPA_INT, mpa_window[512]); - static av_cold void softclip_table_init(void) { int i; @@ -1684,7 +1682,7 @@ static void qdm2_synthesis_filter (QDM2Context *q, int index) for (i = 0; i < 8; i++) { ff_mpa_synth_filter(q->synth_buf[ch], &(q->synth_buf_offset[ch]), - mpa_window, &dither_state, + ff_mpa_synth_window, &dither_state, samples_ptr, q->nb_channels, q->sb_samples[ch][(8 * index) + i]); samples_ptr += 32 * q->nb_channels; @@ -1713,7 +1711,7 @@ static av_cold void qdm2_init(QDM2Context *q) { initialized = 1; qdm2_init_vlc(); - ff_mpa_synth_init(mpa_window); + ff_mpa_synth_init(ff_mpa_synth_window); softclip_table_init(); rnd_table_init(); init_noise_samples(); |