[FFmpeg-soc] [soc]: r2715 - nellyenc/nellymoserenc.c

bwolowiec subversion at mplayerhq.hu
Mon Jul 7 15:44:32 CEST 2008


Author: bwolowiec
Date: Mon Jul  7 15:44:32 2008
New Revision: 2715

Log:
remove useless variables
--ta linia i następne zostaną zignorowane--

M    nellyenc/nellymoserenc.c


Modified:
   nellyenc/nellymoserenc.c

Modified: nellyenc/nellymoserenc.c
==============================================================================
--- nellyenc/nellymoserenc.c	(original)
+++ nellyenc/nellymoserenc.c	Mon Jul  7 15:44:32 2008
@@ -178,11 +178,9 @@ static void encode_block(NellyMoserEncod
     float val=0;
     float pval;
     float tmp, stmp;
-    float ss=1./1.;
-    float scale=1./1.;
 
     for(i=0; i<NELLY_BUF_LEN*3; i++){
-        s->float_buf[i] = samples[i]*ss;
+        s->float_buf[i] = samples[i];
     }
     apply_mdct(s, s->float_buf, s->mdct_out);
     apply_mdct(s, s->float_buf+NELLY_BUF_LEN, s->mdct_out+NELLY_BUF_LEN);
@@ -230,7 +228,7 @@ static void encode_block(NellyMoserEncod
         for (j = 0; j < NELLY_FILL_LEN; j++) {
             bs+=bits[j];
             if (bits[j] > 0) {
-                pval = -pow(2, pows[j]/2048)*scale;
+                pval = -pow(2, pows[j]/2048);
                 tmp = s->mdct_out[i*NELLY_BUF_LEN + j] / pval;
 
                 find_best_value(tmp,



More information about the FFmpeg-soc mailing list