Skip to content

Commit

Permalink
Allow --svt args starting with 'b'
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Dec 4, 2023
1 parent d6afac1 commit 3c027fb
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 32 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Unreleased (0.7.10)
* Fix validation preventing use of svt args starting with "-i", "-b".

# v0.7.9
* Fix validation preventing use of ffmpeg --enc args starting with "-i", e.g. "-init_hw_device".

Expand Down
128 changes: 97 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 ["b", "crf", "preset", "keyint", "scd", "input-depth"] {
for deny in ["crf", "preset", "keyint", "scd", "input-depth"] {
ensure!(!arg.starts_with(deny), "'{deny}' cannot be used here");
}

Expand Down

0 comments on commit 3c027fb

Please sign in to comment.