From 73dee02261f4f132ee37ae3670435406c14eb651 Mon Sep 17 00:00:00 2001 From: John Ridges Date: Fri, 26 Jun 2009 18:43:43 -0400 Subject: Removing h1_mem from the encoder state since it wasn't used at all. --- libspeex/sb_celp.c | 4 +--- libspeex/sb_celp.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/libspeex/sb_celp.c b/libspeex/sb_celp.c index adee4df..389309b 100644 --- a/libspeex/sb_celp.c +++ b/libspeex/sb_celp.c @@ -190,7 +190,6 @@ void *sb_encoder_init(const SpeexMode *m) st->high=(spx_word16_t*)speex_alloc((st->windowSize-st->frame_size)*sizeof(spx_word16_t)); st->h0_mem=(spx_word16_t*)speex_alloc((QMF_ORDER)*sizeof(spx_word16_t)); - st->h1_mem=(spx_word16_t*)speex_alloc((QMF_ORDER)*sizeof(spx_word16_t)); st->window= lpc_window; @@ -241,7 +240,6 @@ void sb_encoder_destroy(void *state) speex_free(st->high); speex_free(st->h0_mem); - speex_free(st->h1_mem); speex_free(st->old_lsp); speex_free(st->old_qlsp); @@ -418,7 +416,7 @@ int sb_encoder_ctl(void *state, int request, void *ptr) for (i=0;ilpcSize;i++) st->mem_sw[i]=st->mem_sp[i]=st->mem_sp2[i]=0; for (i=0;ih0_mem[i]=st->h1_mem[i]=0; + st->h0_mem[i]=0; } break; case SPEEX_SET_SUBMODE_ENCODING: diff --git a/libspeex/sb_celp.h b/libspeex/sb_celp.h index 0d20142..f60e86e 100644 --- a/libspeex/sb_celp.h +++ b/libspeex/sb_celp.h @@ -57,7 +57,7 @@ typedef struct SBEncState { char *stack; /**< Temporary allocation stack */ spx_word16_t *high; /**< High-band signal (buffer) */ - spx_word16_t *h0_mem, *h1_mem; + spx_word16_t *h0_mem; const spx_word16_t *window; /**< LPC analysis window */ const spx_word16_t *lagWindow; /**< Auto-correlation window */ -- cgit v1.2.3