ref: d6f61571925a80ddcc20115562e28378e78a8c5d
parent: 8893e530fcadb20deb18f790e45235532ab10b58
author: Timothy B. Terriberry <[email protected]>
date: Thu Dec 30 04:04:16 EST 2010
Make the dynalloc boost run over [start,end). Previously it was coded for all bands, even when not all of them were being used.
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -1010,7 +1010,7 @@
}
}
dynalloc_prob = 6;
- for (i=0;i<st->mode->nbEBands;i++)
+ for (i=st->start;i<st->end;i++)
{
int j;
ec_enc_bit_logp(enc, offsets[i]!=0, dynalloc_prob);
@@ -1859,7 +1859,7 @@
for (i=0;i<st->mode->nbEBands;i++)
offsets[i] = 0;
dynalloc_prob = 6;
- for (i=0;i<st->mode->nbEBands;i++)
+ for (i=st->start;i<st->end;i++)
{
if (ec_dec_bit_logp(dec, dynalloc_prob))
{