summaryrefslogtreecommitdiff
path: root/libavcodec/acelp_filters.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-06-29 21:37:03 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-06-29 21:37:03 +0000
commitfe4a5b185fdb5a96c1c66018e113b5144b01f6f3 (patch)
treeea31510a01795968de41f2264eb5818fd28acc76 /libavcodec/acelp_filters.c
parentb83ff6c700a7aefaa54f5389f37f37bccc2d4ee1 (diff)
Make ff_acelp_lp_synthesis_filter() receives a pointer to the actual filter coefficients and not the pointer minus one
Originally committed as revision 14031 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/acelp_filters.c')
-rw-r--r--libavcodec/acelp_filters.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/acelp_filters.c b/libavcodec/acelp_filters.c
index fb52d0f8c9..6e5b1f46d7 100644
--- a/libavcodec/acelp_filters.c
+++ b/libavcodec/acelp_filters.c
@@ -121,6 +121,10 @@ int ff_acelp_lp_synthesis_filter(
{
int i,n;
+ // These two lines are two avoid a -1 subtraction in the main loop
+ filter_length++;
+ filter_coeffs--;
+
for(n=0; n<buffer_length; n++)
{
int sum = rounder;