[Ffmpeg-cvslog] r6472 - trunk/libavcodec/vorbis_enc.c

ods15 subversion
Mon Oct 2 08:08:02 CEST 2006


Author: ods15
Date: Mon Oct  2 08:08:01 2006
New Revision: 6472

Modified:
   trunk/libavcodec/vorbis_enc.c

Log:
Original Commit: r67 | ods15 | 2006-09-25 20:33:06 +0300 (Mon, 25 Sep 2006) | 2 lines

horrible off-by-one causing lots of troubles...

Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c	(original)
+++ trunk/libavcodec/vorbis_enc.c	Mon Oct  2 08:08:01 2006
@@ -847,7 +847,7 @@
             float * offset = venc->samples + channel*window_len*2 + window_len;
             j = channel;
             for (i = 0; i < samples; i++, j += venc->channels)
-                offset[i] = audio[j] / 32768. * win[window_len - i] / n;
+                offset[i] = audio[j] / 32768. / n * win[window_len - i - 1];
         }
     } else {
         for (channel = 0; channel < venc->channels; channel++) {
@@ -864,7 +864,7 @@
             float * offset = venc->saved + channel*window_len;
             j = channel;
             for (i = 0; i < samples; i++, j += venc->channels)
-                offset[i] = audio[j] / 32768. * win[i] / n;
+                offset[i] = audio[j] / 32768. / n * win[i];
         }
         venc->have_saved = 1;
     } else {




More information about the ffmpeg-cvslog mailing list