aboutsummaryrefslogtreecommitdiff
path: root/remuxer/src/remux.rs
diff options
context:
space:
mode:
Diffstat (limited to 'remuxer/src/remux.rs')
-rw-r--r--remuxer/src/remux.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/remuxer/src/remux.rs b/remuxer/src/remux.rs
index f944899..1e75b06 100644
--- a/remuxer/src/remux.rs
+++ b/remuxer/src/remux.rs
@@ -273,7 +273,7 @@ pub fn remux_stream_into(
.map(|(i, inp)| {
inp.reader
.seek(
- // the seek target might be a hole; we continue until the next clust of that track.
+ // the seek target might be a hole; we continue until the next cluster of that track.
// 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"))?,
@@ -285,7 +285,7 @@ pub fn remux_stream_into(
Ok(ReaderD {
mapped: inp.mapped,
- peek: Some(stream.next()?),
+ peek: Some(stream.next()?.0), // TODO handle duration
stream,
})
})
@@ -311,7 +311,7 @@ pub fn remux_stream_into(
let track_reader = &mut track_readers[block_track];
let mut block = track_reader
.peek
- .replace(track_reader.stream.next()?)
+ .replace(track_reader.stream.next()?.0) // TODO handle duration
.expect("source file too short");
assert_eq!(index_block.size, block.data.len(), "seek index is wrong");