Skip to content

Commit 9e9054d

Browse files
committed
At high bit-rate, max out low freq allocation
A lot of quantization noise can sometimes accumulate at very low frequencies close to DC, so increase the resolution there.
1 parent 961461c commit 9e9054d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

celt/celt_encoder.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,7 @@ static celt_glog dynalloc_analysis(const celt_glog *bandLogE, const celt_glog *b
12291229
follower[i] = follower[i] + GCONST(1.f/64.f)*analysis->leak_boost[i];
12301230
}
12311231
#endif
1232+
if (effectiveBytes>320) follower[0] += MIN32(GCONST(1.5f), GCONST(1e-3f)*(effectiveBytes-320));
12321233
for (i=start;i<end;i++)
12331234
{
12341235
int width;

0 commit comments

Comments
 (0)