Fixes a stereo bug introduced in the previous commit
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Thu, 12 Aug 2010 00:38:19 +0000 (20:38 -0400)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Thu, 12 Aug 2010 00:38:19 +0000 (20:38 -0400)
libcelt/quant_bands.c

index 30e4bee..19c5964 100644 (file)
@@ -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,