[Ffmpeg-cvslog] r6514 - trunk/libavcodec/vorbis_enc.c
ods15
subversion
Mon Oct 2 08:09:44 CEST 2006
Author: ods15
Date: Mon Oct 2 08:09:43 2006
New Revision: 6514
Modified:
trunk/libavcodec/vorbis_enc.c
Log:
Original Commit: r110 | ods15 | 2006-10-01 19:17:32 +0200 (Sun, 01 Oct 2006) | 2 lines
slight simlification for residue division by floor
Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c (original)
+++ trunk/libavcodec/vorbis_enc.c Mon Oct 2 08:09:43 2006
@@ -1424,11 +1424,8 @@
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++) {
More information about the ffmpeg-cvslog
mailing list