mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
Call input.frames()
after startup_check
This commit is contained in:
parent
3abed09a58
commit
15bf15e720
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue