shithub: opus

Download patch

ref: 5f633543c722f6aa990d2959f6885f1b175aeff5
parent: f7547a4e8e59dc97dda510f2f925124aefe2c986
author: Jean-Marc Valin <[email protected]>
date: Thu Apr 29 05:58:05 EDT 2010

shortWindow hadn't been used for a while

--- a/libcelt/dump_modes.c
+++ b/libcelt/dump_modes.c
@@ -147,7 +147,6 @@
       fprintf(file, "%d,\t/* nbShortMdcts */\n", mode->nbShortMdcts);
       fprintf(file, "%d,\t/* shortMdctSize */\n", mode->shortMdctSize);
       fprintf(file, "{%d, 0, 0},\t/* shortMdct */\n", 2*mode->mdctSize);
-      fprintf(file, "window%d,\t/* shortWindow */\n", mode->overlap);
       fprintf(file, "0,\t/* prob */\n");
       fprintf(file, "logN%d_%d,\t/* logN */\n", mode->Fs, mode->mdctSize);
       fprintf(file, "0x%x,\t/* marker */\n", 0xa110ca7e);
--- a/libcelt/modes.c
+++ b/libcelt/modes.c
@@ -394,7 +394,7 @@
 
    mode->shortMdctSize = mode->mdctSize/mode->nbShortMdcts;
    clt_mdct_init(&mode->shortMdct, 2*mode->shortMdctSize);
-   mode->shortWindow = mode->window;
+
    mode->prob = quant_prob_alloc(mode);
    if ((mode->mdct.trig==NULL) || (mode->shortMdct.trig==NULL)
 #ifndef ENABLE_TI_DSPLIB55
--- a/libcelt/modes.h
+++ b/libcelt/modes.h
@@ -103,7 +103,6 @@
    int         nbShortMdcts;
    int         shortMdctSize;
    mdct_lookup shortMdct;
-   const celt_word16 *shortWindow;
 
    int *prob;
    const celt_int16 *logN;