summaryrefslogtreecommitdiff
path: root/libavcodec/aac_tablegen.h
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2011-04-26 14:45:48 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-04-27 12:39:37 -0400
commitd70fa4c4238ffa69592fffa7c817532534f303c4 (patch)
treebb1d0fdf72e89cce8fad6093fdb7cafef43752f6 /libavcodec/aac_tablegen.h
parente4744b59aadd6e7064491c0228d6248289a6a85a (diff)
Define POW_SF2_ZERO in aac.h and use for ff_aac_pow2sf_tabp[] offsets instead
of hardcoding 200 everywhere.
Diffstat (limited to 'libavcodec/aac_tablegen.h')
-rw-r--r--libavcodec/aac_tablegen.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/aac_tablegen.h b/libavcodec/aac_tablegen.h
index c7be492084..98895694a8 100644
--- a/libavcodec/aac_tablegen.h
+++ b/libavcodec/aac_tablegen.h
@@ -29,13 +29,14 @@
#include "libavcodec/aac_tables.h"
#else
#include "libavutil/mathematics.h"
+#include "libavcodec/aac.h"
float ff_aac_pow2sf_tab[428];
void ff_aac_tableinit(void)
{
int i;
for (i = 0; i < 428; i++)
- ff_aac_pow2sf_tab[i] = pow(2, (i - 200) / 4.);
+ ff_aac_pow2sf_tab[i] = pow(2, (i - POW_SF2_ZERO) / 4.);
}
#endif /* CONFIG_HARDCODED_TABLES */