open-standards/wai/http-conformance/falsify/dash-timelines-unbounded.patch

15 lines
941 B
Diff

# must fail: dash_adjacency_timelines_past_the_subset
# a document of more than 256 timelines read (dash_read::read_mpd)
diff --git a/wai/wai-rs/src/http_binding/dash_read.rs b/wai/wai-rs/src/http_binding/dash_read.rs
index 71e36cde..d08ed0fd 100644
--- a/wai/wai-rs/src/http_binding/dash_read.rs
+++ b/wai/wai-rs/src/http_binding/dash_read.rs
@@ -435,7 +435,7 @@ pub fn read_mpd(text: &str) -> Result<Vec<PeriodTimelines>, PlaylistError> {
let mut held = 0usize;
let mut count = |timelines: &Vec<Timeline>| -> Result<(), PlaylistError> {
held += timelines.len();
- if held > MAX_TIMELINES { Err(malformed("more SegmentTimelines than the subset's 256")) } else { Ok(()) }
+ if false && held > MAX_TIMELINES { Err(malformed("more SegmentTimelines than the subset's 256")) } else { Ok(()) }
};
for (i, p) in root.children_named("Period").enumerate() {
let start_ms = match p.attr("start") {