examples/transcode-x264: fix typo in parse_opts
Unfortunate typo when fixing a clippy warning about using &str instead of char...
This commit is contained in:
parent
18058e9a8f
commit
f024eaea37
@ -145,7 +145,7 @@ impl Transcoder {
|
|||||||
fn parse_opts<'a>(s: String) -> Option<Dictionary<'a>> {
|
fn parse_opts<'a>(s: String) -> Option<Dictionary<'a>> {
|
||||||
let mut dict = Dictionary::new();
|
let mut dict = Dictionary::new();
|
||||||
for keyval in s.split_terminator(',') {
|
for keyval in s.split_terminator(',') {
|
||||||
let tokens: Vec<&str> = keyval.split(',').collect();
|
let tokens: Vec<&str> = keyval.split('=').collect();
|
||||||
match tokens[..] {
|
match tokens[..] {
|
||||||
[key, val] => dict.set(key, val),
|
[key, val] => dict.set(key, val),
|
||||||
_ => return None,
|
_ => return None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user