aboutsummaryrefslogtreecommitdiff
path: root/remuxer/src/extract.rs
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2023-12-09 11:37:51 +0100
committertpart <tpart120@proton.me>2023-12-09 11:37:51 +0100
commit2d853f3a20e1e4810dc75941bde8adc7390e8d76 (patch)
tree2caf79d512368d63a93ac6fb6f9a25eea8c4775e /remuxer/src/extract.rs
parenta2fca8bf6b62538ddeadac8155c3b3e653ef4511 (diff)
parent9b1310a6e1a6065c541ad35bdf274f7941a26ef4 (diff)
downloadjellything-2d853f3a20e1e4810dc75941bde8adc7390e8d76.tar
jellything-2d853f3a20e1e4810dc75941bde8adc7390e8d76.tar.bz2
jellything-2d853f3a20e1e4810dc75941bde8adc7390e8d76.tar.zst
Merge branch 'master' of codeberg.org:metamuffin/jellything
Diffstat (limited to 'remuxer/src/extract.rs')
-rw-r--r--remuxer/src/extract.rs69
1 files changed, 0 insertions, 69 deletions
diff --git a/remuxer/src/extract.rs b/remuxer/src/extract.rs
index 66c0526..6bd7b59 100644
--- a/remuxer/src/extract.rs
+++ b/remuxer/src/extract.rs
@@ -48,72 +48,3 @@ pub fn read_group(segment: &mut EbmlReader) -> anyhow::Result<(u64, Block)> {
}
}
}
-
-// fn import_seek_index_segment(
-// segment: &mut Unflatten,
-// seek_index: &mut BTreeMap<u64, SeekIndex>,
-// ) -> Result<()> {
-// while let Some(Ok(Unflat { children, item, .. })) = segment.n() {
-// match item {
-// MatroskaTag::SeekHead(_) => {}
-// MatroskaTag::Info(_) => {}
-// MatroskaTag::Tags(_) => {}
-// MatroskaTag::Cues(_) => {}
-// MatroskaTag::Chapters(_) => {}
-// MatroskaTag::Tracks(_) => {}
-// MatroskaTag::Void(_) => {}
-// MatroskaTag::Cluster(_) => {
-// let mut children = children.unwrap();
-// let mut pts = 0;
-// let mut position = children.position();
-
-// loop {
-// if let Some(Ok(Unflat { children, item, .. })) = children.n() {
-// match item {
-// MatroskaTag::Timestamp(ts) => pts = ts,
-// MatroskaTag::BlockGroup(_) => {
-// trace!("group");
-// let mut children = children.unwrap();
-// // let position = children.position(); //? TODO where should this point to? cluster or block? // probably block
-// while let Some(Ok(Unflat {
-// children: _,
-// item,
-// position,
-// })) = children.n()
-// {
-// match item {
-// MatroskaTag::Block(ref buf) => {
-// let block = Block::parse(buf)?;
-// debug!(
-// "block: track={} tso={}",
-// block.track, block.timestamp_off
-// );
-// seek_index_add(seek_index, &block, position, pts);
-// }
-// _ => trace!("{item:?}"),
-// }
-// }
-// }
-// MatroskaTag::SimpleBlock(buf) => {
-// let block = Block::parse(&buf)?;
-// trace!(
-// "simple block: track={} tso={}",
-// block.track,
-// block.timestamp_off
-// );
-// trace!("{pts} {}", block.timestamp_off);
-// seek_index_add(seek_index, &block, position, pts);
-// }
-// _ => trace!("(rsc) tag ignored: {item:?}"),
-// }
-// } else {
-// break;
-// }
-// position = children.position();
-// }
-// }
-// _ => debug!("(rs) tag ignored: {item:?}"),
-// };
-// }
-// Ok(())
-// }