Commit 37ac909f authored by Luca Barbato's avatar Luca Barbato Committed by Luca Barbato
Browse files

Fix the value unwrapping

parent 4e0a97c6
......@@ -451,7 +451,7 @@ fn parse_config(matches: &ArgMatches<'_>) -> EncoderConfig {
};
cfg.quantizer = quantizer;
cfg.min_quantizer = matches.value_of("MINQP").unwrap().parse().unwrap_or(0);
cfg.min_quantizer = matches.value_of("MINQP").unwrap_or("0").parse().unwrap();
cfg.bitrate = bitrate.checked_mul(1000).expect("Bitrate too high");
cfg.reservoir_frame_delay = matches.value_of("RESERVOIR_FRAME_DELAY").map(|reservior_frame_delay| reservior_frame_delay.parse().unwrap());
cfg.show_psnr = matches.is_present("PSNR");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment