]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/celp_filters.c
cavsdec: check dimensions being valid.
[ffmpeg] / libavcodec / celp_filters.c
index 04ede491ac67073ee2c2ff702d2cff2e475ef8ab..8047a784527ddfe20ac45ac562adaef1364e5e75 100644 (file)
@@ -205,3 +205,12 @@ void ff_celp_lp_zero_synthesis_filterf(float *out, const float *filter_coeffs,
             out[n] += filter_coeffs[i-1] * in[n-i];
     }
 }
+
+void ff_celp_filter_init(CELPFContext *c)
+{
+    c->celp_lp_synthesis_filterf        = ff_celp_lp_synthesis_filterf;
+    c->celp_lp_zero_synthesis_filterf   = ff_celp_lp_zero_synthesis_filterf;
+
+    if(HAVE_MIPSFPU)
+        ff_celp_filter_init_mips(c);
+}