diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-26 04:22:51 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-26 04:22:51 +0100 |
commit | 8fb1a7033bc3936516f24b3a797d005ef9a54422 (patch) | |
tree | 56a08b891437425742e45dff8e66311da47a5028 /remuxer/src/remux.rs | |
parent | 2e41b2b373d5a057061a7694aa5e83001efeaf0f (diff) | |
download | jellything-8fb1a7033bc3936516f24b3a797d005ef9a54422.tar jellything-8fb1a7033bc3936516f24b3a797d005ef9a54422.tar.bz2 jellything-8fb1a7033bc3936516f24b3a797d005ef9a54422.tar.zst |
snippet subtitles are working.
Diffstat (limited to 'remuxer/src/remux.rs')
-rw-r--r-- | remuxer/src/remux.rs | 6 |
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"); |