diff options
-rw-r--r-- | remuxer/src/extract.rs | 69 |
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(()) -// } |