Fix totally broken bit allocation for non-mainstream modes (e.g. powers of two).

Also, making per-band dynamic allocation less aggressive.
This commit is contained in:
Jean-Marc Valin 2010-12-01 16:11:38 -05:00
parent bad42a7d05
commit 1bfa18cb92
2 changed files with 16 additions and 37 deletions

View file

@ -896,7 +896,7 @@ int celt_encode_with_ec_float(CELTEncoder * restrict st, const celt_sig * pcm, i
offsets[i] = 0;
/* Dynamic allocation code */
/* Make sure that dynamic allocation can't make us bust the budget */
if (nbCompressedBytes > 30 && LM>=1)
if (nbCompressedBytes > 50 && LM>=1)
{
int t1, t2;
if (LM <= 1)