diff --git a/crates/ec-av1/src/encoder/mod.rs b/crates/ec-av1/src/encoder/mod.rs index 80c4a490..494d4318 100644 --- a/crates/ec-av1/src/encoder/mod.rs +++ b/crates/ec-av1/src/encoder/mod.rs @@ -281,7 +281,7 @@ impl RateLoop { const STEP_CLAMP: f64 = 12.0; /// The calibration sweep's own slope (see the struct doc), inverted to /// convert a bytes ratio into a `q_idx` step. - const GAIN: f64 = 1.0 / 0.0154; + const GAIN: f64 = 1.0 / WEIGHT_LEVEL_GAIN; /// The windup bound on [`RateLoop::replan`]: however much a bound level /// fails to spend, no other level's target may grow past this multiple of /// its opening share. Without it a run whose hidden levels are all at the