Original Commit: r88 | ods15 | 2006-09-29 21:10:36 +0300 (Fri, 29 Sep 2006) | 2 lines
slight similification Originally committed as revision 6493 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
40b6c72133
commit
9b9941bee6
@ -985,12 +985,12 @@ static void residue_encode(venc_context_t * venc, residue_t * rc, PutBitContext
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (k = 0; k < psize; k += book->ndimentions) {
|
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;
|
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++ = coeffs[(l % real_ch) * samples + l / real_ch];
|
||||||
a = put_vector(book, pb, vec);
|
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++;
|
coeffs[(l % real_ch) * samples + l / real_ch] -= *a++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user