Mercurial > libavcodec.hg
diff aacdec.c @ 11932:ebe049799f6d libavcodec
aactab: Tablegenify ff_aac_pow2sf_tab.
author | alexc |
---|---|
date | Wed, 23 Jun 2010 19:30:01 +0000 |
parents | 062aab998a98 |
children | c69dd071f7d4 |
line wrap: on
line diff
--- a/aacdec.c Wed Jun 23 19:20:46 2010 +0000 +++ b/aacdec.c Wed Jun 23 19:30:01 2010 +0000 @@ -537,7 +537,6 @@ static av_cold int aac_decode_init(AVCodecContext *avctx) { AACContext *ac = avctx->priv_data; - int i; ac->avctx = avctx; ac->m4ac.sample_rate = avctx->sample_rate; @@ -581,10 +580,7 @@ ac->sf_offset = 60; } -#if !CONFIG_HARDCODED_TABLES - for (i = 0; i < 428; i++) - ff_aac_pow2sf_tab[i] = pow(2, (i - 200) / 4.); -#endif /* CONFIG_HARDCODED_TABLES */ + ff_aac_tableinit(); INIT_VLC_STATIC(&vlc_scalefactors,7,FF_ARRAY_ELEMS(ff_aac_scalefactor_code), ff_aac_scalefactor_bits, sizeof(ff_aac_scalefactor_bits[0]), sizeof(ff_aac_scalefactor_bits[0]),