From ce9eb140ab9243d1c87ace4727a82b7fa50f964b Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 28 Jan 2024 03:21:03 +0100 Subject: fix yet another fundamental issue in the ebml reader and seekindex. --- remuxer/src/remux.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'remuxer/src/remux.rs') diff --git a/remuxer/src/remux.rs b/remuxer/src/remux.rs index 8273c9e..851b43d 100644 --- a/remuxer/src/remux.rs +++ b/remuxer/src/remux.rs @@ -31,7 +31,7 @@ use std::{ struct ClusterLayout { position: usize, timestamp: u64, - source_offsets: Vec>, + source_offsets: Vec>, blocks: Vec<(usize, BlockIndex)>, } @@ -277,7 +277,7 @@ pub fn remux_stream_into( // this should be fine since tracks are only read according to segment_layout find_first_cluster_with_off(&segment_layout, skip, i) .ok_or(anyhow!("cluster hole at eof"))?, - MatroskaTag::Cluster(Master::Start), + MatroskaTag::Cluster(Master::Start), // TODO shouldn't this be a child of cluster? ) .context("seeking in input")?; let mut stream = @@ -333,7 +333,7 @@ fn find_first_cluster_with_off( segment_layout: &[ClusterLayout], skip: usize, track: usize, -) -> Option { +) -> Option { for skip in skip..segment_layout.len() { if let Some(off) = segment_layout[skip].source_offsets[track] { return Some(off); -- cgit v1.2.3-70-g09d2