Mercurial > libavcodec.hg
diff aac.c @ 11489:1aba21918874 libavcodec
Allow hard-coding of the 32kB cubic-root table for AAC.
author | reimar |
---|---|
date | Sun, 14 Mar 2010 19:59:47 +0000 |
parents | 96dde15b2e0d |
children | 8a4984c5cacc |
line wrap: on
line diff
--- a/aac.c Sun Mar 14 19:30:25 2010 +0000 +++ b/aac.c Sun Mar 14 19:59:47 2010 +0000 @@ -86,6 +86,7 @@ #include "aac.h" #include "aactab.h" #include "aacdectab.h" +#include "cbrt_tablegen.h" #include "sbr.h" #include "aacsbr.h" #include "mpeg4audio.h" @@ -108,8 +109,6 @@ static VLC vlc_scalefactors; static VLC vlc_spectral[11]; -static uint32_t cbrt_tab[1<<13]; - static const char overread_err[] = "Input buffer exhausted before END element found\n"; static ChannelElement *get_che(AACContext *ac, int type, int elem_id) @@ -574,13 +573,7 @@ ff_init_ff_sine_windows(10); ff_init_ff_sine_windows( 7); - if (!cbrt_tab[(1<<13) - 1]) { - for (i = 0; i < 1<<13; i++) { - union float754 f; - f.f = cbrtf(i) * i; - cbrt_tab[i] = f.i; - } - } + cbrt_tableinit(); return 0; }