From dd44e347455610928189bd8d09881db25e55c70d Mon Sep 17 00:00:00 2001 From: mivk Date: Thu, 9 Jul 2020 17:45:51 +0200 Subject: [PATCH] timecode frame field must be < fps. --- SMPTE.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SMPTE.py b/SMPTE.py index 46e080e..4dd75e0 100755 --- a/SMPTE.py +++ b/SMPTE.py @@ -27,7 +27,7 @@ def getframes(self, tc): # Validate timecode if len(tc) != 11: raise ValueError ('Malformed SMPTE timecode', tc) - if int(tc[9:]) > self.fps: + if int(tc[9:]) >= self.fps: raise ValueError ('SMPTE timecode to frame rate mismatch.', tc, self.fps) # Calculate timecode to frames for fps time base