remove correct index

This commit is contained in:
jb-alvarado 2022-10-23 21:35:10 +02:00
parent 5775f9944e
commit b3c3c0ec79

View File

@ -332,7 +332,7 @@ impl PlayoutConfig {
if let Some(i) = cmd.clone().iter().position(|r| r == "-filter_complex") {
config.out.output_filter = Some(cmd[i + 1].clone());
cmd.remove(i);
cmd.remove(i + 1);
cmd.remove(i);
}
config.out.output_cmd = Some(cmd);