diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-04 21:21:14 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-04 21:21:14 +0100 |
commit | 8de1ab1c18e6be051132e2bfe6a6d78b3f8c7dbb (patch) | |
tree | 4698241eee4ff97c5787374f23ae1e28e8a70762 /matroska/src/bin/mkvdump.rs | |
parent | 0e0d05a59b3db59d065ade4a08792125b891dc1a (diff) | |
download | jellything-8de1ab1c18e6be051132e2bfe6a6d78b3f8c7dbb.tar jellything-8de1ab1c18e6be051132e2bfe6a6d78b3f8c7dbb.tar.bz2 jellything-8de1ab1c18e6be051132e2bfe6a6d78b3f8c7dbb.tar.zst |
recursive import
Diffstat (limited to 'matroska/src/bin/mkvdump.rs')
-rw-r--r-- | matroska/src/bin/mkvdump.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/matroska/src/bin/mkvdump.rs b/matroska/src/bin/mkvdump.rs index 4db1223..0070a72 100644 --- a/matroska/src/bin/mkvdump.rs +++ b/matroska/src/bin/mkvdump.rs @@ -3,7 +3,9 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2023 metamuffin <metamuffin.org> */ -use jellymatroska::{matroska::MatroskaTag, read::EbmlReader, unflatten::IterWithPos}; +use jellymatroska::{ + block::Block, matroska::MatroskaTag, read::EbmlReader, unflatten::IterWithPos, +}; use std::{fs::File, io::BufReader}; fn main() { @@ -14,8 +16,10 @@ fn main() { while let Some(tag) = r.next() { let tag = tag.unwrap(); match tag { - MatroskaTag::SimpleBlock(_) => (), // println!("{} SimpleBlock", r.position), - MatroskaTag::Block(_) => (), // println!("{} Block", r.position), + MatroskaTag::SimpleBlock(b) | MatroskaTag::Block(b) => { + let b = Block::parse(&b).unwrap(); + eprintln!("block kf={} ts_off={}", b.keyframe, b.timestamp_off) + } _ => println!("{} {tag:?}", r.position), } } |