diff options
author | Siarhei Siamashka <siarhei.siamashka@gmail.com> | 2009-05-16 18:17:08 +0400 |
---|---|---|
committer | Siarhei Siamashka <siarhei.siamashka@gmail.com> | 2009-05-16 18:17:08 +0400 |
commit | 7d485f165f7f6313002da1fe67c2742f0fbb16c9 (patch) | |
tree | 87e68249904f3c5bc7dcfc05df2eea10fd318ea2 /libavcodec/wmadec.c | |
parent | 3ac56e28b0a3fc84ccac9ac7e359f0f29567f8a0 (diff) |
Support for getting (i)MDCT output multiplied by a constant scaling factor.
Scaling (i)MDCT output has no runtime overhead and can be used to improve
performance of audio codecs. All the changes are only needed in
'ff_mdct_init' function and slow down initialization a bit.
Originally committed as revision 18855 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wmadec.c')
-rw-r--r-- | libavcodec/wmadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 67d934f0f4..e06990230a 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -110,7 +110,7 @@ static int wma_decode_init(AVCodecContext * avctx) /* init MDCT */ for(i = 0; i < s->nb_block_sizes; i++) - ff_mdct_init(&s->mdct_ctx[i], s->frame_len_bits - i + 1, 1); + ff_mdct_init(&s->mdct_ctx[i], s->frame_len_bits - i + 1, 1, 1.0); if (s->use_noise_coding) { init_vlc(&s->hgain_vlc, HGAINVLCBITS, sizeof(ff_wma_hgain_huffbits), |