increase multiplier; fix ffmpeg "seconds" containing :

This commit is contained in:
Dominic 2023-10-30 22:22:56 +01:00
parent c5cbc608f1
commit 228e1648f0
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
2 changed files with 6 additions and 2 deletions

View file

@ -32,7 +32,7 @@ const TRANSITION_LEN: Time = Time {
seconds: 0,
micros: 200_000
};
const FF_MULTIPLIER: usize = 3;
const FF_MULTIPLIER: usize = 8;
fn cmd() -> Command {
let mut cmd = Command::new("busybox");

View file

@ -122,7 +122,11 @@ impl FromStr for Time {
impl Display for Time {
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(())
}
}