fps no longer optional

Former-commit-id: b99223b39824a078adaff63eef486277958d6429
This commit is contained in:
Daniel Løvbrøtte Olsen
2020-04-21 17:14:21 +02:00
parent 7b2190a78f
commit 80d02c8428
2 changed files with 13 additions and 8 deletions

View File

@@ -48,8 +48,7 @@ pub struct EOptions {
pub aomenc: String,
pub two_pass: bool,
pub pix_fmt: EPixFmt,
#[serde(default)]
pub fps: Option<(u16, u16)>
pub fps: (u16, u16)
}
impl Default for EOptions {
fn default() -> Self {
@@ -58,7 +57,7 @@ impl Default for EOptions {
aomenc: "--lag-in-frames=25 --tile-columns=0 --tile-rows=0 --enable-fwd-kf=1 --bit-depth=10 --cpu-used=3 --cq-level=30 --end-usage=q".to_string(),
two_pass: false,
pix_fmt: EPixFmt::I422,
fps: Option::None
fps: (25, 1)
}
}
}