diff options
author | John Ridges <jridges@masque.com> | 2009-06-27 02:43:43 +0400 |
---|---|---|
committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2009-06-27 02:43:43 +0400 |
commit | 73dee02261f4f132ee37ae3670435406c14eb651 (patch) | |
tree | 0e43d0f17987c71797f6eff730b28cb8362caf27 /libspeex | |
parent | e261e59cf71a96b6b242e03d61a9cd4a35d5dcb9 (diff) |
Removing h1_mem from the encoder state since it wasn't used at all.
Diffstat (limited to 'libspeex')
-rw-r--r-- | libspeex/sb_celp.c | 4 | ||||
-rw-r--r-- | 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;i<st->lpcSize;i++) st->mem_sw[i]=st->mem_sp[i]=st->mem_sp2[i]=0; for (i=0;i<QMF_ORDER;i++) - st->h0_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 */ |