From 228e1648f0ea328277e179075cfc1d86833d2ab7 Mon Sep 17 00:00:00 2001
From: Dominic <git@msrd0.de>
Date: Mon, 30 Oct 2023 22:22:56 +0100
Subject: [PATCH] increase multiplier; fix ffmpeg "seconds" containing :

---
 src/render/mod.rs | 2 +-
 src/time.rs       | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/render/mod.rs b/src/render/mod.rs
index e8b6729..6accb37 100644
--- a/src/render/mod.rs
+++ b/src/render/mod.rs
@@ -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");
diff --git a/src/time.rs b/src/time.rs
index c77443e..8884516 100644
--- a/src/time.rs
+++ b/src/time.rs
@@ -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(())
 	}
 }
 
-- 
GitLab