aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2020-07-09 10:42:01 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2020-07-09 10:42:01 +0200
commitdcabdfd2eea01174f46548a8e2166ab88d0de96b (patch)
tree872bda3e8d43155672653dbba8f5664f87e55882
parent0eb53738b53a489850cc7d3ad8ba21aa8f93a093 (diff)
downloadnihav-dcabdfd2eea01174f46548a8e2166ab88d0de96b.tar.gz
core/frame: fix NATimePoint parsing from string
-rw-r--r--nihav-core/src/frame.rs2
1 files changed, 1 insertions, 1 deletions
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::<u64>();
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;