shithub: opus

Download patch

ref: 4357e9390d626335c74d37f01196f94e8ec28181
parent: 1a6ae384ef04b6304e0c731e924f7b646ea08d47
author: Nils Wallménius <[email protected]>
date: Mon Nov 12 18:05:28 EST 2012

Follow up to commit 8b906c102b37ce74571898c8879c01b2a9088fb3

Remove two now redundant zeroing loops

Signed-off-by: Jean-Marc Valin <[email protected]>

--- a/celt/celt_decoder.c
+++ b/celt/celt_decoder.c
@@ -394,10 +394,6 @@
 
       denormalise_bands(mode, X, freq, bandE, st->start, mode->effEBands, C, 1<<LM);
 
-      c=0; do
-         for (i=0;i<eBands[st->start]<<LM;i++)
-            freq[c*N+i] = 0;
-      while (++c<C);
       c=0; do {
          int bound = eBands[effEnd]<<LM;
          if (st->downsample!=1)
@@ -852,10 +848,6 @@
       OPUS_MOVE(decode_mem[c], decode_mem[c]+N, DECODE_BUFFER_SIZE-N+overlap);
    } while (++c<CC);
 
-   c=0; do
-      for (i=0;i<M*eBands[st->start];i++)
-         freq[c*N+i] = 0;
-   while (++c<C);
    c=0; do {
       int bound = M*eBands[effEnd];
       if (st->downsample!=1)