[FFmpeg-cvslog] avcodec/celp_math: Disable unused function
Andreas Rheinhardt
git at videolan.org
Wed Feb 24 11:19:08 EET 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Fri Feb 19 02:22:36 2021 +0100| [f529793490310f7a7bb47b18786b179db18dd759] | committer: Andreas Rheinhardt
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 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f529793490310f7a7bb47b18786b179db18dd759
---
libavcodec/celp_math.c | 2 ++
1 file changed, 2 insertions(+)
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)
More information about the ffmpeg-cvslog
mailing list