Make the dynalloc boost run over [start,end).
Previously it was coded for all bands, even when not all of them were being used.
This commit is contained in:
parent
8893e530fc
commit
d6f6157192
1 changed files with 2 additions and 2 deletions
|
@ -1010,7 +1010,7 @@ int celt_encode_with_ec_float(CELTEncoder * restrict st, const celt_sig * pcm, i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dynalloc_prob = 6;
|
dynalloc_prob = 6;
|
||||||
for (i=0;i<st->mode->nbEBands;i++)
|
for (i=st->start;i<st->end;i++)
|
||||||
{
|
{
|
||||||
int j;
|
int j;
|
||||||
ec_enc_bit_logp(enc, offsets[i]!=0, dynalloc_prob);
|
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;i<st->mode->nbEBands;i++)
|
for (i=0;i<st->mode->nbEBands;i++)
|
||||||
offsets[i] = 0;
|
offsets[i] = 0;
|
||||||
dynalloc_prob = 6;
|
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))
|
if (ec_dec_bit_logp(dec, dynalloc_prob))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue