Commit 65245347 authored by vitor's avatar vitor

Rename var

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13821 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7c8739e0
...@@ -137,7 +137,7 @@ static void add_wav(int n, int skip_first, int *m, const int16_t *s1, ...@@ -137,7 +137,7 @@ static void add_wav(int n, int skip_first, int *m, const int16_t *s1,
} }
static void final(const int16_t *i1, const int16_t *i2, static void final(const int16_t *lpc_coefs, const int16_t *adapt_coef,
void *out, int *statbuf, int len) void *out, int *statbuf, int len)
{ {
int x, i; int x, i;
...@@ -145,14 +145,14 @@ static void final(const int16_t *i1, const int16_t *i2, ...@@ -145,14 +145,14 @@ static void final(const int16_t *i1, const int16_t *i2,
int16_t *ptr = work; int16_t *ptr = work;
memcpy(work, statbuf,20); memcpy(work, statbuf,20);
memcpy(work + 10, i2, len * 2); memcpy(work + 10, adapt_coef, len * 2);
for (i=0; i<len; i++) { for (i=0; i<len; i++) {
int sum = 0; int sum = 0;
int new_val; int new_val;
for(x=0; x<10; x++) for(x=0; x<10; x++)
sum += i1[9-x] * ptr[x]; sum += lpc_coefs[9-x] * ptr[x];
sum >>= 12; sum >>= 12;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment