static const AVClass ac3enc_class = { "Fixed-Point AC-3 Encoder", av_default_item_name,
ac3_options, LIBAVUTIL_VERSION_INT };
+static int normalize_samples(AC3EncodeContext *s);
+
#include "ac3enc_template.c"
}
-/*
- * Normalize the input samples.
- * Not needed for the floating-point encoder.
- */
-static int normalize_samples(AC3EncodeContext *s)
-{
- return 0;
-}
-
-
/*
* Scale MDCT coefficients from float to 24-bit fixed-point.
*/
static void scale_coefficients(AC3EncodeContext *s);
-static int normalize_samples(AC3EncodeContext *s);
-
static void clip_coefficients(AudioDSPContext *adsp, CoefType *coef,
unsigned int len);
#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);