Skip to content

Commit 4326209

Browse files
committed
fixing the reader bug on master version
1 parent 0f6f6d4 commit 4326209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: moviepy/video/io/ffmpeg_reader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def get_frame(self, t):
218218
return self.last_read
219219
elif (pos < self.pos) or (pos > self.pos + 100):
220220
# We can't just skip forward to `pos` or it would take too long
221-
self.initialize(t)
221+
self.initialize((pos - 1) / self.fps)
222222
return self.lastread
223223
else:
224224
# If pos == self.pos + 1, this line has no effect

0 commit comments

Comments
 (0)