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