open-standards/wai/http-conformance/falsify/mpc-no-stall.patch
2026-10-06 10:39:19 -04:00

15 lines
630 B
Diff

# must fail: abr_mpc_04 abr_order_O3_mpc_0 depth_O10_mpc_0
# the look-ahead does not count stalls (abr::Mpc::choose)
diff --git a/wai/wai-rs/src/http_binding/abr.rs b/wai/wai-rs/src/http_binding/abr.rs
index 6fb8973c..852404d4 100644
--- a/wai/wai-rs/src/http_binding/abr.rs
+++ b/wai/wai-rs/src/http_binding/abr.rs
@@ -364,7 +364,7 @@ impl Policy for Mpc {
}
prev = Some(uo);
}
- qoe -= rebuf as i128 * (u_top + 65536);
+ qoe -= rebuf as i128 * 0;
if best.is_none_or(|(q, _)| qoe > q) {
best = Some((qoe, seq[0]));
}