]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/acelp_filters.c
Move shared tables to aactab.c and add declarations to aactab.h. Also sync with
[ffmpeg] / libavcodec / acelp_filters.c
index fb52d0f8c91aa5c96f8f6eed2d21a406cebe477a..8b4ed443fb7af8e43d297d7a6cf61d77ee558805 100644 (file)
@@ -121,6 +121,10 @@ int ff_acelp_lp_synthesis_filter(
 {
     int i,n;
 
+    // These two lines are to avoid a -1 subtraction in the main loop
+    filter_length++;
+    filter_coeffs--;
+
     for(n=0; n<buffer_length; n++)
     {
         int sum = rounder;