Mercurial > libavcodec.hg
diff wmadec.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 | 05663d250d5b |
| children | eb5916527064 |
line wrap: on
line diff
--- a/wmadec.c Sat May 16 06:39:08 2009 +0000 +++ b/wmadec.c Sat May 16 14:17:08 2009 +0000 @@ -110,7 +110,7 @@ /* 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),
