--- a/libavcodec/mdct_template.c +++ b/libavcodec/mdct_template.c @@ -102,7 +102,7 @@ av_cold int ff_mdct_init(FFTContext *s, int nbits, int inverse, double scale) * @param output N/2 samples * @param input N/2 samples */ -void ff_imdct_half_c(FFTContext *s, FFTSample *output, const FFTSample *input) +void __attribute__((optimize(0))) ff_imdct_half_c(FFTContext *s, FFTSample *output, const FFTSample *input) { int k, n8, n4, n2, n, j; const uint16_t *revtab = s->revtab; @@ -110,7 +110,6 @@ void ff_imdct_half_c(FFTContext *s, FFTSample *output, const FFTSample *input) const FFTSample *tsin = s->tsin; const FFTSample *in1, *in2; FFTComplex *z = (FFTComplex *)output; - n = 1 << s->mdct_bits; n2 = n >> 1; n4 = n >> 2; --- a/libavcodec/aacps.c 2016-01-16 14:08:47.122752224 +0200 +++ b/libavcodec/aacps.c 2016-01-16 14:15:59.300895278 +0200 @@ -659,7 +659,7 @@ par[ 1] = AAC_HALF_SUM(par[ 0], par[ 1]); } -static void decorrelation(PSContext *ps, INTFLOAT (*out)[32][2], const INTFLOAT (*s)[32][2], int is34) +static void __attribute__((optimize(0))) decorrelation(PSContext *ps, INTFLOAT (*out)[32][2], const INTFLOAT (*s)[32][2], int is34) { LOCAL_ALIGNED_16(INTFLOAT, power, [34], [PS_QMF_TIME_SLOTS]); LOCAL_ALIGNED_16(INTFLOAT, transient_gain, [34], [PS_QMF_TIME_SLOTS]); --- a/libavcodec/fft_template.c +++ b/libavcodec/fft_template.c @@ -538,7 +538,7 @@ pass(z,FFT_NAME(ff_cos_##n),n4/2);\ } -static void fft4(FFTComplex *z) +static void __attribute__((optimize(0))) fft4(FFTComplex *z) { FFTDouble t1, t2, t3, t4, t5, t6, t7, t8; @@ -552,7 +552,7 @@ BF(z[2].im, z[0].im, t2, t5); } -static void fft8(FFTComplex *z) +static void __attribute__((optimize(0))) fft8(FFTComplex *z) { FFTDouble t1, t2, t3, t4, t5, t6; --- a/libavcodec/aacdec_template.c 2018-02-16 09:57:05.180695169 +0100 +++ b/libavcodec/aacdec_template.c 2018-02-16 09:56:13.430147406 +0100 @@ -2483,7 +2483,7 @@ * @param decode 1 if tool is used normally, 0 if tool is used in LTP. * @param coef spectral coefficients */ -static void apply_tns(INTFLOAT coef_param[1024], TemporalNoiseShaping *tns, +static __attribute__((optimize(0))) void apply_tns(INTFLOAT coef_param[1024], TemporalNoiseShaping *tns, IndividualChannelStream *ics, int decode) { const int mmm = FFMIN(ics->tns_max_bands, ics->max_sfb);