diff options
author | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 06:08:53 +0000 |
---|---|---|
committer | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 06:08:53 +0000 |
commit | 9b9941bee65b3ee86d13ed5c3f43a9c92b3e2d4b (patch) | |
tree | d9386ffeff987020e2ce9c4214a76112e64e2539 /libavcodec/vorbis_enc.c | |
parent | 40b6c7213356693a98c90746f5665da581e0135d (diff) | |
download | ffmpeg-streaming-9b9941bee65b3ee86d13ed5c3f43a9c92b3e2d4b.zip ffmpeg-streaming-9b9941bee65b3ee86d13ed5c3f43a9c92b3e2d4b.tar.gz |
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
Diffstat (limited to 'libavcodec/vorbis_enc.c')
-rw-r--r-- | libavcodec/vorbis_enc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c index a64b747..4e45c7e 100644 --- a/libavcodec/vorbis_enc.c +++ b/libavcodec/vorbis_enc.c @@ -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++; } } |