diff options
author | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2007-11-20 17:36:55 +0300 |
---|---|---|
committer | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2007-11-20 17:36:55 +0300 |
commit | bc5da03475529316db1ab5b611944071a0aacd2d (patch) | |
tree | dabc950169b2393c6dfd5635a9b1640405f2e9b3 | |
parent | c73c66de5cd4eb79fe8f50f3cb09edf7f072af81 (diff) |
Fixed an overflow in dead code.
git-svn-id: http://svn.xiph.org/trunk/speex@14200 0101bb08-14d6-0310-b084-bc0e0c8e3800
-rw-r--r-- | TODO | 3 | ||||
-rw-r--r-- | libspeex/nb_celp.c | 3 |
2 files changed, 2 insertions, 4 deletions
@@ -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;i<st->lpcSize;i++) bw_lpc2[i]=0; } /*print_vec(st->bw_lpc1, 10, "bw_lpc");*/ |