From e9ca43774933072ce88b35e036a9cfad86be3515 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Wed, 28 Jan 2026 19:00:33 +0100 Subject: [PATCH] nihav_core/frame: fix NATimeInfo::rescale_ts documentation tests --- nihav-core/src/frame.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nihav-core/src/frame.rs b/nihav-core/src/frame.rs index 174e594..faefff5 100644 --- a/nihav-core/src/frame.rs +++ b/nihav-core/src/frame.rs @@ -960,12 +960,16 @@ impl NATimeInfo { /// /// For instance, converting timestamp from 2/25 rate to milliseconds can be done as /// ``` + /// use nihav_core::frame::NATimeInfo; + /// /// let pts = 42; /// let time = NATimeInfo::rescale_ts(pts, 2, 25, 1, 1000); /// ``` /// /// while back conversion is equally simple: /// ``` + /// use nihav_core::frame::NATimeInfo; + /// /// let millis = 42; /// let ts = NATimeInfo::rescale_ts(millis, 1, 1000, 2, 25); /// ``` -- 2.39.5