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

ods15 subversion
Mon Oct 2 07:56:38 CEST 2006


Author: ods15
Date: Mon Oct  2 07:56:37 2006
New Revision: 6452

Modified:
   trunk/libavcodec/vorbis_enc.c

Log:
Original Commit: r44 | ods15 | 2006-09-23 10:54:43 +0300 (Sat, 23 Sep 2006) | 2 lines

some bug fixes for window()

Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c	(original)
+++ trunk/libavcodec/vorbis_enc.c	Mon Oct  2 07:56:37 2006
@@ -633,7 +633,7 @@
 
     if (samples) {
         for (channel = 0; channel < venc->channels; channel++) {
-            float * offset = venc->saved + channel*window_len*2 + window_len;
+            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];
@@ -650,9 +650,10 @@
 
     if (samples) {
         for (channel = 0; channel < venc->channels; channel++) {
+            float * offset = venc->saved + channel*window_len;
             j = channel;
             for (i = 0; i < samples; i++, j += venc->channels)
-                venc->saved[i] = audio[j] / 32768. * win[i];
+                offset[i] = audio[j] / 32768. * win[i];
         }
         venc->have_saved = 1;
     } else {




More information about the ffmpeg-cvslog mailing list