Skip to content

Commit

Permalink
Fix validation preventing use of --svt args starting with "-i" (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
BuyMyMojo authored Dec 4, 2023
1 parent 1082edf commit d6afac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command/args/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub struct Encode {
fn parse_svt_arg(arg: &str) -> anyhow::Result<Arc<str>> {
let arg = arg.trim_start_matches('-').to_owned();

for deny in ["i", "b", "crf", "preset", "keyint", "scd", "input-depth"] {
for deny in ["b", "crf", "preset", "keyint", "scd", "input-depth"] {
ensure!(!arg.starts_with(deny), "'{deny}' cannot be used here");
}

Expand Down

0 comments on commit d6afac1

Please sign in to comment.