From dcabdfd2eea01174f46548a8e2166ab88d0de96b Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 9 Jul 2020 10:42:01 +0200 Subject: [PATCH] core/frame: fix NATimePoint parsing from string --- 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 741c175..e6757cf 100644 --- a/nihav-core/src/frame.rs +++ b/nihav-core/src/frame.rs @@ -1105,7 +1105,7 @@ impl FromStr for NATimePoint { let ret = parts.next().unwrap().parse::(); if ret.is_err() { return Err(FormatParseError {}); } let seconds = ret.unwrap(); - if seconds >= 60 { return Err(FormatParseError {}); } + if mins.is_some() && seconds >= 60 { return Err(FormatParseError {}); } let millis = if let Some(val) = parts.next() { let mut mval = 0; let mut base = 0; -- 2.39.5