shithub: opus

Download patch

ref: 6ac26ecf2df52748b3fd8991a424ef42462364ae
parent: bb338a931737301b7efef1b80a7ab82d58e38c96
author: Jean-Marc Valin <[email protected]>
date: Wed Aug 11 16:38:19 EDT 2010

Fixes a stereo bug introduced in the previous commit

--- a/libcelt/quant_bands.c
+++ b/libcelt/quant_bands.c
@@ -210,7 +210,7 @@
    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,