perf(dash): collapse single-file tracks that have a sidx gap

This commit is contained in:
imSp4rky
2026-10-25 13:23:53 -06:00
parent 43fcb030f8
commit 0c58575a5b
4 changed files with 152 additions and 83 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ STREAMS: list[tuple[str, str]] = [
("sony-1a", "https://dash.akamaized.net/dash264/TestCases/1a/sony/SNE_DASH_SD_CASE1A_REVISED.mpd"),
]
guard_results: list[bool] = []
guard_results: list[Optional[tuple[int, int]]] = []
def install_guard_spy() -> bool:
@@ -43,7 +43,7 @@ def install_guard_spy() -> bool:
if orig is None:
return False
def spy(is_subtitle: bool, segments: Any, init_len: Optional[int]) -> bool:
def spy(is_subtitle: bool, segments: Any, init_len: int) -> Optional[tuple[int, int]]:
result = orig(is_subtitle, segments, init_len)
guard_results.append(result)
return result