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

Jean-Marc Valin Jean-Marc.Valin at USherbrooke.ca
Mon Jul 18 17:57:38 PDT 2005


Hi Alfred,

Thanks for the patch (oops, some "legacy" code). It's in svn now.

	Jean-Marc

Le mardi 19 juillet 2005 à 02:35 +0200, Alfred E. Heggestad a écrit :
> 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) */
> 
> 
> _______________________________________________
> Speex-dev mailing list
> Speex-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev
> 
-- 
Jean-Marc Valin <Jean-Marc.Valin at USherbrooke.ca>
Université de Sherbrooke



More information about the Speex-dev mailing list