removed unused buffer
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 19 Jul 2005 00:57:08 +0000 (00:57 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 19 Jul 2005 00:57:08 +0000 (00:57 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@9584 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/sb_celp.c
libspeex/sb_celp.h

index 87f03d7..1925f69 100644 (file)
@@ -272,7 +272,6 @@ void *sb_encoder_init(const SpeexMode *m)
    st->g0_mem=speex_alloc((QMF_ORDER)*sizeof(spx_word32_t));
    st->g1_mem=speex_alloc((QMF_ORDER)*sizeof(spx_word32_t));
 
-   st->buf=speex_alloc((st->windowSize)*sizeof(spx_sig_t));
    st->excBuf=speex_alloc((st->bufSize)*sizeof(spx_sig_t));
    st->exc = st->excBuf + st->bufSize - st->windowSize;
 
@@ -349,7 +348,6 @@ void sb_encoder_destroy(void *state)
    speex_free(st->g0_mem);
    speex_free(st->g1_mem);
 
-   speex_free(st->buf);
    speex_free(st->excBuf);
    speex_free(st->res);
    speex_free(st->sw);
index b812a2e..07b1598 100644 (file)
@@ -66,7 +66,6 @@ typedef struct SBEncState {
 
    spx_sig_t *excBuf;              /**< High-band excitation */
    spx_sig_t *exc;                 /**< High-band excitation (for QMF only)*/
-   spx_sig_t *buf;                 /**< Temporary buffer */
    spx_sig_t *res;                 /**< Zero-input response (ringing) */
    spx_sig_t *sw;                  /**< Perceptually weighted signal */
    spx_sig_t *target;              /**< Weighted target signal (analysis by synthesis) */