diff options
author | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 06:09:43 +0000 |
---|---|---|
committer | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 06:09:43 +0000 |
commit | 2eb3db5f69e9098833b1c35a708347625d346c86 (patch) | |
tree | 51794e8fcd39e913cc5e6a487d87b917b9e07194 /libavcodec | |
parent | f8a6a56a75cdec7cecedf234f139487288eafc68 (diff) | |
download | ffmpeg-2eb3db5f69e9098833b1c35a708347625d346c86.tar.gz |
Original Commit: r110 | ods15 | 2006-10-01 19:17:32 +0200 (Sun, 01 Oct 2006) | 2 lines
slight simlification for residue division by floor
Originally committed as revision 6514 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vorbis_enc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c index 8c5712887a..54caa3f0f7 100644 --- a/libavcodec/vorbis_enc.c +++ b/libavcodec/vorbis_enc.c @@ -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); } - for (i = 0; i < venc->channels; i++) { - int j; - for (j = 0; j < samples; j++) { - venc->coeffs[i * samples + j] /= venc->floor[i * samples + j]; - } + for (i = 0; i < venc->channels * samples; i++) { + venc->coeffs[i] /= venc->floor[i]; } for (i = 0; i < mapping->coupling_steps; i++) { |