]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/opusdsp.c
avcodec: Constify all the AVCodecParsers
[ffmpeg] / libavcodec / opusdsp.c
index 17e819f9771bc29df0f6257c5ce28ceae3130d2e..08df87ffbe958fc301fdc945679f641b7773dd84 100644 (file)
@@ -43,15 +43,10 @@ static void postfilter_c(float *data, int period, float *gains, int len)
 
 static float deemphasis_c(float *y, float *x, float coeff, int len)
 {
-    float state = coeff;
+    for (int i = 0; i < len; i++)
+        coeff = y[i] = x[i] + coeff*CELT_EMPH_COEFF;
 
-    for (int i = 0; i < len; i++) {
-        const float tmp = x[i] + state;
-        state = tmp * CELT_EMPH_COEFF;
-        y[i] = tmp;
-    }
-
-    return state;
+    return coeff;
 }
 
 av_cold void ff_opus_dsp_init(OpusDSP *ctx)
@@ -61,4 +56,7 @@ av_cold void ff_opus_dsp_init(OpusDSP *ctx)
 
     if (ARCH_X86)
         ff_opus_dsp_init_x86(ctx);
+
+    if (ARCH_AARCH64)
+        ff_opus_dsp_init_aarch64(ctx);
 }