diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2022-12-17 11:45:54 +0100 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2022-12-17 11:45:54 +0100 |
commit | 081797c71bd8cd4342d58a2124cbd7f72d02b7d2 (patch) | |
tree | 0d4e45839212c9d1fe7b4bee6fd36517ef8e5e45 /src/main.rs | |
parent | 8a8f6e5c8847945e274c5d7e2c6a51c027c19c35 (diff) | |
download | nihav-tool-081797c71bd8cd4342d58a2124cbd7f72d02b7d2.tar.gz |
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 929ab6e..fcf6a56 100644 --- a/src/main.rs +++ b/src/main.rs @@ -105,6 +105,7 @@ fn main() { let mut ignore_errors = false; let mut dump_frames = false; let mut force_dmx: Option<&str> = None; + let mut demux_opts: Vec<NAOption> = Vec::new(); while (cur_arg < args.len()) && args[cur_arg].starts_with('-') { match args[cur_arg].as_str() { @@ -154,6 +155,9 @@ fn main() { } force_dmx = Some(&args[cur_arg]); }, + "-print_mov_chunks" => { + demux_opts.push(NAOption{name: "print_chunks", value: NAValue::Bool(true) }); + }, "-ignerr" => { ignore_errors = true; }, "-dumpfrm" => { dump_frames = true; }, _ => { println!("unknown option {}", args[cur_arg]); return; }, @@ -188,7 +192,7 @@ fn main() { } let mut br = ByteReader::new(nfr.as_mut()); let full_reg = FullRegister::new(); - let mut demuxer = DemuxerObject::create(&mut br, &full_reg, name, force_dmx, is_raw); + let mut demuxer = DemuxerObject::create(&mut br, &full_reg, name, force_dmx, is_raw, &demux_opts); if demuxer.is_none() { println!("No demuxer found!"); return; |