ref: f8809dda4b2c5c64aa611f73014df963d98de82e
parent: 1122d299ab7427c43f6dd7f549d6d39eafe97a86
author: Jean-Marc Valin <[email protected]>
date: Wed Dec 12 10:22:39 EST 2012
Dynalloc rate calibration
--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -1558,8 +1558,8 @@
SHR16(MULT16_16(st->stereo_saving,(coded_stereo_dof<<BITRES)),8));
target += MULT16_16_Q15(QCONST16(0.1f,15),coded_stereo_dof<<BITRES);
}
- /* Limits starving of other bands when using dynalloc */
- target += tot_boost;
+ /* Boost the rate according to dynalloc (minus the dynalloc average for calibration). */
+ target += tot_boost-128;
/* Compensates for the average transient boost */
target = MULT16_32_Q15(QCONST16(0.96f,15),target);
/* Apply transient boost */