shithub: opus

Download patch

ref: d9de59310400aaee08b96b5e2d4cbf439f64a3d8
parent: a1bc18a38836e2b1360a26a1d7ef2571b2f3b694
author: Jean-Marc Valin <[email protected]>
date: Wed Mar 5 03:11:57 EST 2008

Fixed a bunch of warnings

--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -512,7 +512,7 @@
     pitch period */
 static void celt_decode_lost(CELTDecoder *st, short *pcm)
 {
-   int i, c, N, B, C, N4;
+   int i, c, N, B, C;
    int pitch_index;
    VARDECL(celt_sig_t *freq);
    SAVE_STACK;
@@ -519,7 +519,6 @@
    N = st->block_size;
    B = st->nb_blocks;
    C = st->mode->nbChannels;
-   N4 = (N-st->overlap)/2;
    ALLOC(freq,C*B*N, celt_sig_t);         /**< Interleaved signal MDCTs */
    
    pitch_index = st->last_pitch_index;
--- a/libcelt/modes.c
+++ b/libcelt/modes.c
@@ -216,7 +216,7 @@
 CELTMode *celt_mode_create(int Fs, int channels, int frame_size, int lookahead, int *error)
 {
    int res;
-   int N, N2, N4, i;
+   int N, i;
    CELTMode *mode;
    
    /* The good thing here is that permutation of the arguments will automatically be invalid */
@@ -266,8 +266,6 @@
    /*printf ("%d bands\n", mode->nbEBands);*/
    
    N = mode->mdctSize;
-   N2 = N/2;
-   N4 = N/4;
    mdct_init(&mode->mdct, 2*N);
 
    mode->window = (celt_word16_t*)celt_alloc(mode->overlap*sizeof(celt_word16_t));
--- a/libcelt/vq.c
+++ b/libcelt/vq.c
@@ -69,9 +69,12 @@
    celt_word32_t Ryp, Ryy, Rpp;
    celt_word32_t g;
    VARDECL(celt_norm_t *y);
+#ifdef FIXED_POINT
+   int yshift;
+#endif
    SAVE_STACK;
 #ifdef FIXED_POINT
-   int yshift = 14-EC_ILOG(K);
+   yshift = 14-EC_ILOG(K);
 #endif
    ALLOC(y, N, celt_norm_t);