Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

style: cargo fmt

Richie McIlroyb5822c30791d
diff --git a/crates/video-decode/src/ffmpeg.rs b/crates/video-decode/src/ffmpeg.rs
index 7e90250bd..0a4408efe 100644
--- a/crates/video-decode/src/ffmpeg.rs
+++ b/crates/video-decode/src/ffmpeg.rs
@@ -410,7 +410,8 @@ impl FFmpegDecoder {
// before a keyframe landed on that keyframe, past the request. The
// reader decodes forward to the request from wherever the seek lands.
const SEEK_MARGIN_US: i64 = 2_000;
- let timestamp_us = ((f64::from(requested_time) * 1_000_000.0) as i64 - SEEK_MARGIN_US).max(0);
+ let timestamp_us =
+ ((f64::from(requested_time) * 1_000_000.0) as i64 - SEEK_MARGIN_US).max(0);
let position = rescale::Rescale::rescale(&timestamp_us, (1, 1_000_000), rescale::TIME_BASE);
self.decoder.flush();