Commit fbecf188 authored by Luca Barbato's avatar Luca Barbato Committed by Vittorio Giovara

Add width and height as parsable parameters

parent 3f9a7c31
......@@ -454,6 +454,8 @@ impl Config {
"speed" => self.enc.speed_settings = SpeedSettings::from_preset(value.parse().map_err(|_e| ParseError)?),
"tune" => self.enc.tune = value.parse().map_err(|_e| ParseError)?,
"threads" => self.threads = value.parse().map_err(|_e| ParseError)?,
"width" => self.enc.width = value.parse().map_err(|_e| ParseError)?,
"height" => self.enc.height = value.parse().map_err(|_e| ParseError)?,
_ => return Err(InvalidKey)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment