Skip to content

Commit cfad841

Browse files
authored
Disable grain table generation if --photon-noise 0 is set (#599)
1 parent e9ad35b commit cfad841

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

av1an-cli/src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,9 @@ pub fn parse_cli(args: CliOpts) -> anyhow::Result<Vec<EncodeArgs>> {
548548
Err(_) => Some(240_usize),
549549
},
550550
},
551-
photon_noise: args.photon_noise,
551+
photon_noise: args
552+
.photon_noise
553+
.and_then(|arg| if arg == 0 { None } else { Some(arg) }),
552554
sc_pix_format: args.sc_pix_format,
553555
keep: args.keep,
554556
max_tries: args.max_tries,

0 commit comments

Comments
 (0)