Commit 6e8f6a18 authored by ods15's avatar ods15

Original Commit: r88 | ods15 | 2006-09-29 21:10:36 +0300 (Fri, 29 Sep 2006) | 2 lines

slight similification

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6493 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8dbe7b2a
......@@ -985,12 +985,12 @@ static void residue_encode(venc_context_t * venc, residue_t * rc, PutBitContext
}
} else {
for (k = 0; k < psize; k += book->ndimentions) {
int dim = book->ndimentions, s = rc->begin + p * psize, l;
int dim = book->ndimentions, s = rc->begin + p * psize + k, l;
float vec[dim], * a = vec;
for (l = s + k; l < s + k + dim; l++)
for (l = s; l < s + dim; l++)
*a++ = coeffs[(l % real_ch) * samples + l / real_ch];
a = put_vector(book, pb, vec);
for (l = s + k; l < s + k + dim; l++)
for (l = s; l < s + dim; l++)
coeffs[(l % real_ch) * samples + l / real_ch] -= *a++;
}
}
......
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