summaryrefslogtreecommitdiff
path: root/libavcodec/aac.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-03-14 19:59:47 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-03-14 19:59:47 +0000
commitc26bce1070a409ae2fefce8fb43d26228d108f7e (patch)
treedd0a6b30e0f0f9de49b43e5913b7aefc6f586d80 /libavcodec/aac.c
parent7732f641ffd23670b9e84f07a0ec3b3b360b8a64 (diff)
Allow hard-coding of the 32kB cubic-root table for AAC.
Originally committed as revision 22527 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aac.c')
-rw-r--r--libavcodec/aac.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/libavcodec/aac.c b/libavcodec/aac.c
index 84a8cc00ae..26555e9dea 100644
--- a/libavcodec/aac.c
+++ b/libavcodec/aac.c
@@ -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 @@ union float754 {
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 @@ static av_cold int aac_decode_init(AVCodecContext *avccontext)
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;
}