[Speex-dev] [PATCH] remove unused encoder buf in sb_celp.[hc]

Alfred E. Heggestad alfredh at owera.com
Mon Jul 18 17:35:00 PDT 2005


diffed against http://svn.xiph.org/trunk/speex r9583


Index: libspeex/sb_celp.c
===================================================================
--- libspeex/sb_celp.c  (revision 9583)
+++ libspeex/sb_celp.c  (working copy)
@@ -272,7 +272,6 @@
    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 @@
    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: libspeex/sb_celp.h
===================================================================
--- libspeex/sb_celp.h  (revision 9583)
+++ libspeex/sb_celp.h  (working copy)
@@ -66,7 +66,6 @@

    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) */




More information about the Speex-dev mailing list