summaryrefslogtreecommitdiff
path: root/libavcodec/mdct_template.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-07-31 22:20:47 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-05 19:46:33 +0200
commit211619ad7f43b99a0c1100398f157544b5724460 (patch)
tree0e5dfef62381c4b668cf49cebe83c30f18b08cd4 /libavcodec/mdct_template.c
parent763c501432267cc93a2812fdfcf21c50be03f720 (diff)
avcodec: Remove the FFT_FIXED_32 define
Since the removal of the 16-bit FFT said define is unnecessary as FFT_FIXED_32 is always !FFT_FLOAT. But one wouldn't believe it when looking at the code. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mdct_template.c')
-rw-r--r--libavcodec/mdct_template.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/mdct_template.c b/libavcodec/mdct_template.c
index e0ad9f1e53..a854ad2700 100644
--- a/libavcodec/mdct_template.c
+++ b/libavcodec/mdct_template.c
@@ -35,11 +35,7 @@
#if FFT_FLOAT
# define RSCALE(x, y) ((x) + (y))
#else
-#if FFT_FIXED_32
# define RSCALE(x, y) ((int)((x) + (unsigned)(y) + 32) >> 6)
-#else /* FFT_FIXED_32 */
-# define RSCALE(x, y) ((int)((x) + (unsigned)(y)) >> 1)
-#endif /* FFT_FIXED_32 */
#endif
/**
@@ -82,7 +78,7 @@ av_cold int ff_mdct_init(FFTContext *s, int nbits, int inverse, double scale)
scale = sqrt(fabs(scale));
for(i=0;i<n4;i++) {
alpha = 2 * M_PI * (i + theta) / n;
-#if FFT_FIXED_32
+#if !FFT_FLOAT
s->tcos[i*tstep] = lrint(-cos(alpha) * 2147483648.0);
s->tsin[i*tstep] = lrint(-sin(alpha) * 2147483648.0);
#else