aboutsummaryrefslogtreecommitdiff
path: root/remuxer
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-11-28 16:05:40 +0100
committermetamuffin <metamuffin@disroot.org>2023-11-28 16:05:40 +0100
commited6270c806289615830ef8d55347ce32bb4a457c (patch)
tree0749812771e23be11e1a867b48803a4ad2859e86 /remuxer
parent1d2ed0a54c21e0ab7dd01b5f3975bb5df12d40ea (diff)
downloadjellything-ed6270c806289615830ef8d55347ce32bb4a457c.tar
jellything-ed6270c806289615830ef8d55347ce32bb4a457c.tar.bz2
jellything-ed6270c806289615830ef8d55347ce32bb4a457c.tar.zst
dead code
Diffstat (limited to 'remuxer')
-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(())
-// }