mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
Disable grain table generation if --photon-noise 0
is set (#599)
This commit is contained in:
parent
e9ad35b1ca
commit
cfad841648
1 changed files with 3 additions and 1 deletions
|
@ -548,7 +548,9 @@ pub fn parse_cli(args: CliOpts) -> anyhow::Result<Vec<EncodeArgs>> {
|
|||
Err(_) => Some(240_usize),
|
||||
},
|
||||
},
|
||||
photon_noise: args.photon_noise,
|
||||
photon_noise: args
|
||||
.photon_noise
|
||||
.and_then(|arg| if arg == 0 { None } else { Some(arg) }),
|
||||
sc_pix_format: args.sc_pix_format,
|
||||
keep: args.keep,
|
||||
max_tries: args.max_tries,
|
||||
|
|
Loading…
Reference in a new issue