Commit 5eec1b78 authored by ods15's avatar ods15

Original Commit: r110 | ods15 | 2006-10-01 19:17:32 +0200 (Sun, 01 Oct 2006) | 2 lines

slight simlification for residue division by floor

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6514 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bf6bf1ba
...@@ -1424,11 +1424,8 @@ static int vorbis_encode_frame(AVCodecContext * avccontext, unsigned char * pack ...@@ -1424,11 +1424,8 @@ static int vorbis_encode_frame(AVCodecContext * avccontext, unsigned char * pack
floor_encode(venc, fc, &pb, posts, &venc->floor[i * samples], samples); floor_encode(venc, fc, &pb, posts, &venc->floor[i * samples], samples);
} }
for (i = 0; i < venc->channels; i++) { for (i = 0; i < venc->channels * samples; i++) {
int j; venc->coeffs[i] /= venc->floor[i];
for (j = 0; j < samples; j++) {
venc->coeffs[i * samples + j] /= venc->floor[i * samples + j];
}
} }
for (i = 0; i < mapping->coupling_steps; i++) { for (i = 0; i < mapping->coupling_steps; i++) {
......
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