Mercurial > libavcodec.hg
diff nellymoserdec.c @ 9658:67a20f0eb42c libavcodec
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.
author | serge |
---|---|
date | Sat, 16 May 2009 14:17:08 +0000 |
parents | f1dc62781766 |
children | 38ab367d4231 |
line wrap: on
line diff
--- a/nellymoserdec.c Sat May 16 06:39:08 2009 +0000 +++ b/nellymoserdec.c Sat May 16 14:17:08 2009 +0000 @@ -130,7 +130,7 @@ s->avctx = avctx; av_lfg_init(&s->random_state, ff_random_get_seed()); - ff_mdct_init(&s->imdct_ctx, 8, 1); + ff_mdct_init(&s->imdct_ctx, 8, 1, 1.0); dsputil_init(&s->dsp, avctx);