[SCM] libav/experimental: cleanup

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:49:09 UTC 2013


The following commit has been merged in the experimental branch:
commit 8ea543b5805453853d8071c86ce15a70dfd097b1
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Fri Jul 14 19:14:25 2006 +0000

    cleanup
    
    Originally committed as revision 5750 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index 3eb4d46..b72da90 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -749,7 +749,7 @@ static int lpc_calc_coefs(const int32_t *samples, int blocksize, int max_order,
         double var[MAX_LPC_ORDER+1], eval;
 
         for(pass=0; pass<use_lpc-1; pass++){
-            av_init_lls(&m[pass&1], max_order/*3*/);
+            av_init_lls(&m[pass&1], max_order);
 
             for(i=max_order; i<blocksize; i++){
                 for(j=0; j<=max_order; j++)
@@ -759,7 +759,7 @@ static int lpc_calc_coefs(const int32_t *samples, int blocksize, int max_order,
                     eval= av_evaluate_lls(&m[(pass-1)&1], var+1);
                     eval= (512>>pass) + fabs(eval - var[0]);
                     for(j=0; j<=max_order; j++)
-                        var[j]= samples[i-j] / sqrt(eval);
+                        var[j]/= sqrt(eval);
                 }
 
                 av_update_lls(&m[pass&1], var, 1.0);

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list