Call input.frames() after startup_check

This commit is contained in:
Redzic 2021-11-27 22:33:31 -06:00
parent 3abed09a58
commit 15bf15e720

View file

@ -310,7 +310,7 @@ pub fn parse_cli(args: CliOpts) -> anyhow::Result<EncodeArgs> {
// TODO make an actual constructor for this
let mut encode_args = EncodeArgs {
frames: input.frames(),
frames: 0,
log_file: if let Some(log_file) = args.log_file.as_ref() {
Path::new(&format!("{}.log", log_file)).to_owned()
} else {
@ -425,6 +425,8 @@ pub fn parse_cli(args: CliOpts) -> anyhow::Result<EncodeArgs> {
encode_args.startup_check()?;
encode_args.frames = encode_args.input.frames();
if !args.overwrite {
if let Some(path) = args.output_file.as_ref() {
if path.exists()