summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-19 02:22:36 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-24 09:40:42 +0100
commitf529793490310f7a7bb47b18786b179db18dd759 (patch)
tree72b88211bc74d5bba51f98884ef457d019187d39
parent7825cc392a2febbe91a1321a522dbdaa49048ae7 (diff)
avcodec/celp_math: Disable unused function
The code using ff_exp2 (namely ff_acelp_decode_gain_code) use it only if G729_BITEXACT is defined. So disable it if not. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavcodec/celp_math.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/celp_math.c b/libavcodec/celp_math.c
index a96b1aed9e..920995a879 100644
--- a/libavcodec/celp_math.c
+++ b/libavcodec/celp_math.c
@@ -29,6 +29,7 @@
#include "celp_math.h"
#include "libavutil/common.h"
+#ifdef G729_BITEXACT
static const uint16_t exp2a[]=
{
0, 1435, 2901, 4400, 5931, 7496, 9096, 10730,
@@ -54,6 +55,7 @@ int ff_exp2(uint16_t power)
result= (result<<3) + ((result*exp2b[(power>>5)&31])>>17);
return result + ((result*(power&31)*89)>>22);
}
+#endif
/**
* Table used to compute log2(x)