Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-04-07 06:04:37 +0300
committerJames Almer <jamrial@gmail.com>2017-04-07 06:04:37 +0300
commitc37e8c0b7fd4a68604102eb4c9d9c9f347c57ad2 (patch)
tree3da89fce5778674f4afbdeeb3f32f28ea0dae7f3 /libavcodec/ac3enc_template.c
parentbfb2e20737cb310bd352b46a286a73e7a689e0d4 (diff)
parente22c63ac74b2968075be8bf0d2deb1ee63b28976 (diff)
Merge commit 'e22c63ac74b2968075be8bf0d2deb1ee63b28976'
* commit 'e22c63ac74b2968075be8bf0d2deb1ee63b28976': ac3enc: Reshuffle some float/fixed-mode ifdefs to avoid a dummy function Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/ac3enc_template.c')
-rw-r--r--libavcodec/ac3enc_template.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/ac3enc_template.c b/libavcodec/ac3enc_template.c
index 9dec9ae9cf..0b23b964ac 100644
--- a/libavcodec/ac3enc_template.c
+++ b/libavcodec/ac3enc_template.c
@@ -40,8 +40,6 @@
static void scale_coefficients(AC3EncodeContext *s);
-static int normalize_samples(AC3EncodeContext *s);
-
static void clip_coefficients(AudioDSPContext *adsp, CoefType *coef,
unsigned int len);
@@ -113,10 +111,10 @@ static void apply_mdct(AC3EncodeContext *s)
#else
s->ac3dsp.apply_window_int16(s->windowed_samples, input_samples,
s->mdct_window, AC3_WINDOW_SIZE);
-#endif
if (s->fixed_point)
block->coeff_shift[ch+1] = normalize_samples(s);
+#endif
s->mdct.mdct_calcw(&s->mdct, block->mdct_coef[ch+1],
s->windowed_samples);