From 137241d089bcd25ce7f2db878a5c8dbbe4e65d9d Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Sat, 6 Dec 2008 23:44:55 -0500 Subject: [PATCH] Fix a case where the new search can leave us with no pulse left --- libcelt/vq.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libcelt/vq.c b/libcelt/vq.c index 51c9ab81..e9836555 100644 --- a/libcelt/vq.c +++ b/libcelt/vq.c @@ -145,9 +145,10 @@ void alg_quant(celt_norm_t *X, celt_mask_t *W, int N, int K, celt_norm_t *P, ec_ j=0; do { sum += X[j]; } while (++j=1, "Allocated too many pulses in the quick pass"); #endif while (pulsesLeft > 1) {