Skip to content

Commit

Permalink
fix smpte validation to only reject if seconds is '00'
Browse files Browse the repository at this point in the history
  • Loading branch information
ugai committed Sep 13, 2022
1 parent d423256 commit d941e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dftt_timecode/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _(self, timecode_value, timecode_type='auto', fps=24.0, drop_frame=False, st
frame_index = ff + self.__nominal_fps * (ss + mm * 60 + hh * 3600)
else:
drop_per_min = self.__nominal_fps / 30 * 2
if mm % 10 != 0 and ff in (0, drop_per_min - 1): # 检查是否有DF下不合法的帧号
if mm % 10 != 0 and ss == 0 and ff in (0, drop_per_min - 1): # 检查是否有DF下不合法的帧号
logging.log(40,
'Timecode.__init__.smpte: This timecode is illegal under given params, check your input!')
raise DFTTTimecodeValueError
Expand Down

0 comments on commit d941e7f

Please sign in to comment.