[SCM] libav/experimental: Original Commit: r44 | ods15 | 2006-09-23 10:54:43 +0300 (Sat, 23 Sep 2006) | 2 lines

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:51:26 UTC 2013


The following commit has been merged in the experimental branch:
commit f4e5e657b81fd39fc2ca9b24a03d2353bdcba3b1
Author: Oded Shimon <ods15 at ods15.dyndns.org>
Date:   Mon Oct 2 05:56:37 2006 +0000

    Original Commit: r44 | ods15 | 2006-09-23 10:54:43 +0300 (Sat, 23 Sep 2006) | 2 lines
    
    some bug fixes for window()
    
    Originally committed as revision 6452 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c
index bc4bef2..7f918e6 100644
--- a/libavcodec/vorbis_enc.c
+++ b/libavcodec/vorbis_enc.c
@@ -633,7 +633,7 @@ static int window(venc_context_t * venc, signed short * audio, int samples) {
 
     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 @@ static int window(venc_context_t * venc, signed short * audio, int samples) {
 
     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 {

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list