increase multiplier; fix ffmpeg "seconds" containing :
This commit is contained in:
parent
c5cbc608f1
commit
228e1648f0
2 changed files with 6 additions and 2 deletions
|
@ -32,7 +32,7 @@ const TRANSITION_LEN: Time = Time {
|
||||||
seconds: 0,
|
seconds: 0,
|
||||||
micros: 200_000
|
micros: 200_000
|
||||||
};
|
};
|
||||||
const FF_MULTIPLIER: usize = 3;
|
const FF_MULTIPLIER: usize = 8;
|
||||||
|
|
||||||
fn cmd() -> Command {
|
fn cmd() -> Command {
|
||||||
let mut cmd = Command::new("busybox");
|
let mut cmd = Command::new("busybox");
|
||||||
|
|
|
@ -122,7 +122,11 @@ impl FromStr for Time {
|
||||||
|
|
||||||
impl Display for Time {
|
impl Display for Time {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
f.write_str(&format_time(*self))
|
write!(f, "{}", self.seconds)?;
|
||||||
|
if self.micros != 0 {
|
||||||
|
write!(f, ".{}", self.micros)?;
|
||||||
|
}
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue