From 6ac26ecf2df52748b3fd8991a424ef42462364ae Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Wed, 11 Aug 2010 20:38:19 -0400 Subject: [PATCH] Fixes a stereo bug introduced in the previous commit --- libcelt/quant_bands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcelt/quant_bands.c b/libcelt/quant_bands.c index 30e4bee8..19c59646 100644 --- a/libcelt/quant_bands.c +++ b/libcelt/quant_bands.c @@ -210,7 +210,7 @@ void quant_coarse_energy(const CELTMode *m, int start, int end, int effEnd, buf_start_state = *(enc->buf); ALLOC(oldEBands_intra, C*m->nbEBands, celt_word16); - ALLOC(error_intra, m->nbEBands, celt_word16); + ALLOC(error_intra, C*m->nbEBands, celt_word16); CELT_COPY(oldEBands_intra, oldEBands, C*end); quant_coarse_energy_impl(m, start, end, eBands, oldEBands_intra, budget,