From: Kostya Shishkov Date: Wed, 28 Jan 2026 18:00:33 +0000 (+0100) Subject: nihav_core/frame: fix NATimeInfo::rescale_ts documentation tests X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=e9ca43774933072ce88b35e036a9cfad86be3515;p=nihav.git nihav_core/frame: fix NATimeInfo::rescale_ts documentation tests --- 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); /// ```