Skip to content

Commit

Permalink
timecode frame field must be < fps.
Browse files Browse the repository at this point in the history
  • Loading branch information
mivk committed Jul 9, 2020
1 parent 6404144 commit dd44e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SMPTE.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd44e34

Please sign in to comment.