diff options
Diffstat (limited to 'libavcodec/aac_tablegen.h')
-rw-r--r-- | libavcodec/aac_tablegen.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/aac_tablegen.h b/libavcodec/aac_tablegen.h index bf71e59cb5..8b223f972e 100644 --- a/libavcodec/aac_tablegen.h +++ b/libavcodec/aac_tablegen.h @@ -30,12 +30,15 @@ #else #include "libavutil/mathematics.h" float ff_aac_pow2sf_tab[428]; +float ff_aac_pow34sf_tab[428]; av_cold void ff_aac_tableinit(void) { int i; - for (i = 0; i < 428; i++) + for (i = 0; i < 428; i++) { ff_aac_pow2sf_tab[i] = pow(2, (i - POW_SF2_ZERO) / 4.0); + ff_aac_pow34sf_tab[i] = pow(ff_aac_pow2sf_tab[i], 3.0/4.0); + } } #endif /* CONFIG_HARDCODED_TABLES */ |