drop the dead code and close the gaps in the verification gate

This commit is contained in:
2026-09-21 06:35:52 +03:00
parent 4125d509cc
commit 4b850096a1
11 changed files with 13 additions and 17 deletions
+1 -2
View File
@@ -635,8 +635,7 @@ fn gif_shrink_factor(mode: GifBudgetMode, ratio: f64) -> f64 {
GifBudgetMode::Balanced => {
// Split the required reduction between resolution and fps so we
// reduce both proportionally rather than halving resolution alone.
let half = 0.5_f64;
(ratio * (1.0 - half) + ratio.sqrt() * half).clamp(0.1, 1.0)
(ratio * 0.5 + ratio.sqrt() * 0.5).clamp(0.1, 1.0)
}
}
}