dash_runtime/limits.rs
1//! Hostile-input bounds the player adds on top of the manifest reader's.
2//!
3//! The document and element bounds are the manifest reader's
4//! ([`broadcast_dash::limits::Limits`]); this module owns the ones that limit
5//! segment addressing and the BaseURL alternates a plan combines.
6
7/// Most Media Segments one `SegmentTimeline` may describe once `@r` is
8/// expanded. The expansion is lazy (run table, never one entry per segment),
9/// so this bounds the arithmetic, not the memory.
10pub const MAX_TIMELINE_SEGMENTS: u64 = 1_000_000;
11/// Most candidate base locations kept when `BaseURL` alternates are combined
12/// across levels.
13pub const MAX_BASE_CANDIDATES: usize = 64;
14
15/// The manifest reader's hostile-input bounds, re-exported so a player's
16/// configuration names one type.
17pub use broadcast_dash::limits::Limits;