From bc5da03475529316db1ab5b611944071a0aacd2d Mon Sep 17 00:00:00 2001 From: jm Date: Tue, 20 Nov 2007 14:36:55 +0000 Subject: Fixed an overflow in dead code. git-svn-id: http://svn.xiph.org/trunk/speex@14200 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- TODO | 3 +-- libspeex/nb_celp.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/TODO b/TODO index fd72327..523573d 100644 --- a/TODO +++ b/TODO @@ -2,14 +2,13 @@ For 1.2beta3: Control delay in new AEC API. Implement speex_header_free() better error reporting -get rid of floats in initialisation (make the lag window a const array) -split encoder and decoder? improve float<->int conversion NaN checks? Eventually: Fix last frame of speexenc +split encoder and decoder? Merge TriMedia stuff packet dump Do VAD properly diff --git a/libspeex/nb_celp.c b/libspeex/nb_celp.c index b1d8592..171f337 100644 --- a/libspeex/nb_celp.c +++ b/libspeex/nb_celp.c @@ -705,8 +705,7 @@ int nb_encode(void *state, void *vin, SpeexBits *bits) bw_lpc(st->gamma2, interp_lpc, bw_lpc2, st->lpcSize); else { - bw_lpc2[0]=1; - for (i=1;i<=st->lpcSize;i++) + for (i=0;ilpcSize;i++) bw_lpc2[i]=0; } /*print_vec(st->bw_lpc1, 10, "bw_lpc");*/ -- cgit v1.2.3