We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1afdb05 commit 68e6d11Copy full SHA for 68e6d11
pytimecode.py
@@ -22,7 +22,7 @@ def __init__(self, framerate, start_timecode=None, frames=None, drop_frame=False
22
self.framerate = framerate
23
self.int_framerate = self.set_int_framerate()
24
self.drop_frame = drop_frame
25
- if start_timecode and drop_frame and start_timecode[8] != ';':
+ if start_timecode and drop_frame and len(start_timecode) > 8 and start_timecode[8] != ';':
26
raise ValueError("If drop_frame is True and a start timecode is specified, the tc must use drop frame format.")
27
self.iter_return = iter_return
28
self.hrs = None
0 commit comments