Skip to content

Commit

Permalink
fixing the reader bug on master version
Browse files Browse the repository at this point in the history
  • Loading branch information
alimirjahani7 committed Oct 30, 2024
1 parent 0f6f6d4 commit 4326209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moviepy/video/io/ffmpeg_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def get_frame(self, t):
return self.last_read
elif (pos < self.pos) or (pos > self.pos + 100):
# We can't just skip forward to `pos` or it would take too long
self.initialize(t)
self.initialize((pos - 1) / self.fps)
return self.lastread
else:
# If pos == self.pos + 1, this line has no effect
Expand Down

0 comments on commit 4326209

Please sign in to comment.