Skip to content

Commit

Permalink
Remove enc starts-with "-i" validation
Browse files Browse the repository at this point in the history
This is validated later to prevent passing -i
Resolves #157
  • Loading branch information
alexheretic committed Nov 5, 2023
1 parent 556f7d8 commit 9221976
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Unreleased (v0.7.9)
* Fix validation preventing use of ffmpeg --enc args starting with "-i", e.g. "-init_hw_device".

# v0.7.8
* Fix ETA calculation overflow panic scenario.

Expand Down
32 changes: 26 additions & 6 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion src/command/args/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ fn parse_enc_arg(arg: &str) -> anyhow::Result<String> {
!arg.starts_with("-svtav1-params"),
"'svtav1-params' cannot be set here, use `--svt`"
);
ensure!(!arg.starts_with("-i"), "'i' cannot be used");

Ok(arg)
}
Expand Down

0 comments on commit 9221976

Please sign in to comment.