From 7d485f165f7f6313002da1fe67c2742f0fbb16c9 Mon Sep 17 00:00:00 2001 From: Siarhei Siamashka Date: Sat, 16 May 2009 14:17:08 +0000 Subject: 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 --- libavcodec/wmaenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/wmaenc.c') diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c index a8ba6b0b66..95e5929c7d 100644 --- a/libavcodec/wmaenc.c +++ b/libavcodec/wmaenc.c @@ -63,7 +63,7 @@ static int encode_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, 0); + ff_mdct_init(&s->mdct_ctx[i], s->frame_len_bits - i + 1, 0, 1.0); avctx->block_align= s->block_align= avctx->bit_rate*(int64_t)s->frame_len / (avctx->sample_rate*8); -- cgit v1.2.3