From 6ef3300aba87ad89c3903e94d99e83dc3a6716b5 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 31 Oct 2026 10:41:20 -0400 Subject: [PATCH] Assert that out-of-range pic num differences are refused Co-Authored-By: Claude Opus 5.5 --- crates/video/src/h264/dpb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/video/src/h264/dpb.rs b/crates/video/src/h264/dpb.rs index 81044955..34688e2f 100644 --- a/crates/video/src/h264/dpb.rs +++ b/crates/video/src/h264/dpb.rs @@ -478,7 +478,7 @@ mod tests { slice_group_change_cycle: 0, header_bits: 0, }; - let _ = Dpb::new().build_ref_lists(&sh, 0, 16); + assert!(Dpb::new().build_ref_lists(&sh, 0, 16).is_err()); } } }