aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aacenc.c
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2010-06-23 19:30:01 +0000
committerAlex Converse <alex.converse@gmail.com>2010-06-23 19:30:01 +0000
commite29af81818b49d5586d6e1a0c91bf1ce4a576a09 (patch)
tree548bf52371dfaed53bc696ad635dacf84340b5db /libavcodec/aacenc.c
parent2966cc18493d9dc041c229b9d05ee1c3217eb32f (diff)
downloadffmpeg-e29af81818b49d5586d6e1a0c91bf1ce4a576a09.tar.gz
aactab: Tablegenify ff_aac_pow2sf_tab.
Originally committed as revision 23740 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aacenc.c')
-rw-r--r--libavcodec/aacenc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index 219a4c1e31..8c913e0dbc 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -204,10 +204,8 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
s->coder = &ff_aac_coders[2];
s->lambda = avctx->global_quality ? avctx->global_quality : 120;
-#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();
if (avctx->channels > 5)
av_log(avctx, AV_LOG_ERROR, "This encoder does not yet enforce the restrictions on LFEs. "