From d6f61571925a80ddcc20115562e28378e78a8c5d Mon Sep 17 00:00:00 2001 From: "Timothy B. Terriberry" Date: Thu, 30 Dec 2010 09:04:16 -0800 Subject: [PATCH] Make the dynalloc boost run over [start,end). Previously it was coded for all bands, even when not all of them were being used. --- libcelt/celt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcelt/celt.c b/libcelt/celt.c index 03bd83a7..922f51d6 100644 --- a/libcelt/celt.c +++ b/libcelt/celt.c @@ -1010,7 +1010,7 @@ int celt_encode_with_ec_float(CELTEncoder * restrict st, const celt_sig * pcm, i } } dynalloc_prob = 6; - for (i=0;imode->nbEBands;i++) + for (i=st->start;iend;i++) { int j; ec_enc_bit_logp(enc, offsets[i]!=0, dynalloc_prob); @@ -1859,7 +1859,7 @@ int celt_decode_with_ec_float(CELTDecoder * restrict st, const unsigned char *da for (i=0;imode->nbEBands;i++) offsets[i] = 0; dynalloc_prob = 6; - for (i=0;imode->nbEBands;i++) + for (i=st->start;iend;i++) { if (ec_dec_bit_logp(dec, dynalloc_prob)) {