From 556509ab9495f191dac5531be40930daeb7562d0 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 22 Nov 2021 18:46:19 +0100 Subject: [PATCH] core: fix NAStream.get_duration() --- nihav-core/src/frame.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-core/src/frame.rs b/nihav-core/src/frame.rs index 70a054d..1ba3610 100644 --- a/nihav-core/src/frame.rs +++ b/nihav-core/src/frame.rs @@ -1357,7 +1357,7 @@ impl NAStream { self.tb_den = d; } /// Returns stream duration. - pub fn get_duration(&self) -> usize { self.num } + pub fn get_duration(&self) -> u64 { self.duration } /// Converts current instance into a reference-counted one. pub fn into_ref(self) -> NAStreamRef { Arc::new(self) } } -- 2.39.5