changeset 3888:e89e213459cf libavcodec

Original Commit: r88 | ods15 | 2006-09-29 21:10:36 +0300 (Fri, 29 Sep 2006) | 2 lines slight similification
author ods15
date Mon, 02 Oct 2006 06:08:53 +0000
parents 71ba8e680704
children a0462572fefa
files vorbis_enc.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/vorbis_enc.c	Mon Oct 02 06:08:51 2006 +0000
+++ b/vorbis_enc.c	Mon Oct 02 06:08:53 2006 +0000
@@ -985,12 +985,12 @@
                         }
                     } 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++;
                         }
                     }