aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegaudiodec.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/mpegaudiodec.c
parent8767fb4caddbae86a48a299d94d353bc82ea98a2 (diff)
downloadffmpeg-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/mpegaudiodec.c')
-rw-r--r--libavcodec/mpegaudiodec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index 47c22791bb..4077d79019 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -120,7 +120,7 @@ static const int32_t scale_factor_mult2[3][3] = {
SCALE_GEN(4.0 / 9.0), /* 9 steps */
};
-static DECLARE_ALIGNED_16(MPA_INT, window[512]);
+DECLARE_ALIGNED_16(MPA_INT, ff_mpa_synth_window[512]);
/**
* Convert region offsets to region sizes and truncate
@@ -351,7 +351,7 @@ static av_cold int decode_init(AVCodecContext * avctx)
scale_factor_mult[i][2]);
}
- ff_mpa_synth_init(window);
+ ff_mpa_synth_init(ff_mpa_synth_window);
/* huffman decode tables */
offset = 0;
@@ -2238,7 +2238,7 @@ static int mp_decode_frame(MPADecodeContext *s,
samples_ptr = samples + ch;
for(i=0;i<nb_frames;i++) {
ff_mpa_synth_filter(s->synth_buf[ch], &(s->synth_buf_offset[ch]),
- window, &s->dither_state,
+ ff_mpa_synth_window, &s->dither_state,
samples_ptr, s->nb_channels,
s->sb_samples[ch][i]);
samples_ptr += 32 * s->nb_channels;