diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-28 03:21:03 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-28 03:21:03 +0100 |
commit | ce9eb140ab9243d1c87ace4727a82b7fa50f964b (patch) | |
tree | b64da94ba58f72a2371cdd8644dc48a178b7d260 /matroska/src/bin/experiment.rs | |
parent | b514ec8cea2c2143e0bd7a0eb377c96a6f091d0d (diff) | |
download | jellything-ce9eb140ab9243d1c87ace4727a82b7fa50f964b.tar jellything-ce9eb140ab9243d1c87ace4727a82b7fa50f964b.tar.bz2 jellything-ce9eb140ab9243d1c87ace4727a82b7fa50f964b.tar.zst |
fix yet another fundamental issue in the ebml reader and seekindex.
Diffstat (limited to 'matroska/src/bin/experiment.rs')
-rw-r--r-- | matroska/src/bin/experiment.rs | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/matroska/src/bin/experiment.rs b/matroska/src/bin/experiment.rs deleted file mode 100644 index e185787..0000000 --- a/matroska/src/bin/experiment.rs +++ /dev/null @@ -1,33 +0,0 @@ -/* - This file is part of jellything (https://codeberg.org/metamuffin/jellything) - which is licensed under the GNU Affero General Public License (version 3); see /COPYING. - Copyright (C) 2024 metamuffin <metamuffin.org> -*/ -use jellymatroska::{ - matroska::MatroskaTag, read::EbmlReader, unflatten::IterWithPos, write::EbmlWriter, -}; -use std::{ - fs::File, - io::{stdout, BufReader, BufWriter}, -}; - -fn main() { - env_logger::init_from_env("LOG"); - let path = std::env::args().nth(1).unwrap(); - let mut r = EbmlReader::new(BufReader::new(File::open(path).unwrap())); - let mut w = EbmlWriter::new(BufWriter::new(stdout()), 0); - - // r.seek( - // 631147167 + 52, - // ebml::matroska::MatroskaTag::Cues(Master::Start), - // ) - // .unwrap(); - - while let Some(tag) = r.next() { - let tag = tag.unwrap(); - if MatroskaTag::is_master(tag.id()).unwrap() { - eprintln!("{tag:?}"); - } - w.write_tag(&tag).unwrap(); - } -} |