From: Kostya Shishkov Date: Thu, 9 Jul 2020 08:42:01 +0000 (+0200) Subject: core/frame: fix NATimePoint parsing from string X-Git-Url: https://git.nihav.org/?p=nihav.git;a=commitdiff_plain;h=dcabdfd2eea01174f46548a8e2166ab88d0de96b core/frame: fix NATimePoint parsing from string --- 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;