diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-19 14:40:34 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-19 14:40:34 +0200 |
commit | e4d60fc1a59f1c747c81871118512ef543e48e05 (patch) | |
tree | edae7c6308af119b06a4ee7c7b61820717cc24ce /matroska/src/bin/mkvdump.rs | |
parent | 121722729caaacbbd430b0a58c302389575acd05 (diff) | |
download | jellything-e4d60fc1a59f1c747c81871118512ef543e48e05.tar jellything-e4d60fc1a59f1c747c81871118512ef543e48e05.tar.bz2 jellything-e4d60fc1a59f1c747c81871118512ef543e48e05.tar.zst |
lazy block flags parsing
Diffstat (limited to 'matroska/src/bin/mkvdump.rs')
-rw-r--r-- | matroska/src/bin/mkvdump.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/matroska/src/bin/mkvdump.rs b/matroska/src/bin/mkvdump.rs index 923e48f..48420c6 100644 --- a/matroska/src/bin/mkvdump.rs +++ b/matroska/src/bin/mkvdump.rs @@ -15,7 +15,12 @@ fn main() { let (position, tag) = tag.unwrap(); match tag { MatroskaTag::SimpleBlock(b) | MatroskaTag::Block(b) => { - println!("block kf={} ts_off={}", b.keyframe, b.timestamp_off) + println!( + "block t={} kf={} ts_off={}", + b.track, + b.flags.keyframe(), + b.timestamp_off + ) } _ => println!("{} {tag:?}", position.unwrap_or(0)), } |