changeset 3909:3cac42cde8ea libavcodec

Original Commit: r110 | ods15 | 2006-10-01 19:17:32 +0200 (Sun, 01 Oct 2006) | 2 lines slight simlification for residue division by floor
author ods15
date Mon, 02 Oct 2006 06:09:43 +0000
parents 045c650f0951
children aada0ac47451
files vorbis_enc.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/vorbis_enc.c	Mon Oct 02 06:09:41 2006 +0000
+++ b/vorbis_enc.c	Mon Oct 02 06:09:43 2006 +0000
@@ -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++) {