summaryrefslogtreecommitdiff
path: root/libavcodec/aac.c
diff options
context:
space:
mode:
authorSiarhei Siamashka <siarhei.siamashka@gmail.com>2009-05-16 14:17:08 +0000
committerSiarhei Siamashka <siarhei.siamashka@gmail.com>2009-05-16 14:17:08 +0000
commit7d485f165f7f6313002da1fe67c2742f0fbb16c9 (patch)
tree87e68249904f3c5bc7dcfc05df2eea10fd318ea2 /libavcodec/aac.c
parent3ac56e28b0a3fc84ccac9ac7e359f0f29567f8a0 (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/aac.c')
-rw-r--r--libavcodec/aac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aac.c b/libavcodec/aac.c
index 5427d7c672..25c74b8157 100644
--- a/libavcodec/aac.c
+++ b/libavcodec/aac.c
@@ -500,8 +500,8 @@ static av_cold int aac_decode_init(AVCodecContext * avccontext) {
ff_aac_scalefactor_code, sizeof(ff_aac_scalefactor_code[0]), sizeof(ff_aac_scalefactor_code[0]),
352);
- ff_mdct_init(&ac->mdct, 11, 1);
- ff_mdct_init(&ac->mdct_small, 8, 1);
+ ff_mdct_init(&ac->mdct, 11, 1, 1.0);
+ ff_mdct_init(&ac->mdct_small, 8, 1, 1.0);
// window initialization
ff_kbd_window_init(ff_aac_kbd_long_1024, 4.0, 1024);
ff_kbd_window_init(ff_aac_kbd_short_128, 6.0, 128);