diff --git a/celt/celt_encoder.c b/celt/celt_encoder.c index 594d63ba..6c5e9e1c 100644 --- a/celt/celt_encoder.c +++ b/celt/celt_encoder.c @@ -1283,7 +1283,7 @@ static int compute_vbr(const CELTMode *mode, AnalysisInfo *analysis, opus_int32 /* Boost the rate according to dynalloc (minus the dynalloc average for calibration). */ target += tot_boost-(19<tonality-.15f)-0.09f; + tonal = MAX16(0.f,analysis->tonality-.15f)-0.12f; tonal_target = target + (opus_int32)((coded_bins<