Skip to content
Snippets Groups Projects
Commit 6bf15c55 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Tuning the folding bands.

The idea here is that it's better to fold a higher band -- even if it was
coded less accurately -- than a lower band that may have a different
temporal structure.
parent 0110301d
No related branches found
No related tags found
No related merge requests found
......@@ -978,8 +978,8 @@ void quant_all_bands(int encode, const CELTMode *m, int start, int end, celt_nor
balance += pulses[i] + tell;
/* Update the folding position only as long as we have 2 bit/sample depth */
update_lowband = (b>>BITRES)>2*N;
/* Update the folding position only as long as we have 1 bit/sample depth */
update_lowband = (b>>BITRES)>N;
}
RESTORE_STACK;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment