Skip to content
Snippets Groups Projects
Unverified Commit fad0d1ec authored by Dominic Meiser's avatar Dominic Meiser
Browse files

optimize if chain

parent 083bcb07
No related branches found
No related tags found
No related merge requests found
...@@ -270,12 +270,12 @@ impl Ffmpeg { ...@@ -270,12 +270,12 @@ impl Ffmpeg {
cmd.arg("-crf").arg(QUALITY); cmd.arg("-crf").arg(QUALITY);
} }
} }
if self.video_bitrate.is_some() {
cmd.arg("-b:v").arg(self.video_bitrate.unwrap().to_string());
}
} else { } else {
cmd.arg("-c:v").arg("copy"); cmd.arg("-c:v").arg("copy");
} }
if venc && self.video_bitrate.is_some() {
cmd.arg("-b:v").arg(self.video_bitrate.unwrap().to_string());
}
if aenc { if aenc {
cmd.arg("-c:a").arg("aac"); cmd.arg("-c:a").arg("aac");
cmd.arg("-b:a").arg("128000"); cmd.arg("-b:a").arg("128000");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment