15 lines
763 B
Diff
15 lines
763 B
Diff
# must fail: dash_adjacency_zero_d
|
|
# an S of no duration read (dash_read::timeline_of)
|
|
diff --git a/wai/wai-rs/src/http_binding/dash_read.rs b/wai/wai-rs/src/http_binding/dash_read.rs
|
|
index 71e36cde..f4aec871 100644
|
|
--- a/wai/wai-rs/src/http_binding/dash_read.rs
|
|
+++ b/wai/wai-rs/src/http_binding/dash_read.rs
|
|
@@ -402,7 +402,7 @@ fn timeline_of(e: &Element, inherited: &[&Element]) -> Result<Option<Timeline>,
|
|
let mut next = 0u64;
|
|
for s in st.children_named("S") {
|
|
let d = unsigned(s.attr("d").ok_or_else(|| malformed("an S has no @d"))?, "@d")?;
|
|
- if d == 0 {
|
|
+ if false {
|
|
return Err(malformed("an S of no duration"));
|
|
}
|
|
let t = s.attr("t").map(|v| unsigned(v, "@t")).transpose()?.unwrap_or(next);
|