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 eb1469c commit 204e93dCopy full SHA for 204e93d
src/thumbnails/video.py
@@ -79,6 +79,7 @@ def calc_columns(self):
79
for col in range(1, self.frames_count):
80
if (col * width) / (self.frames_count // col * height) > ratio:
81
return col
82
+ return 1 # fixes the case when the video is too short
83
84
def _extract_frame(self, start_time):
85
"""Extracts a single frame from the video by the offset."""
0 commit comments