mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
vapoursynth: Fix division by zero in aegisub_vs.py progress indicator
This commit is contained in:
parent
9683959f2e
commit
9b0fef1c38
@ -236,7 +236,7 @@ def make_keyframes(clip: vs.VideoNode, use_scxvid: bool = False,
|
||||
nonlocal done
|
||||
keyframes[n] = f.props._SceneChangePrev if use_scxvid else f.props.Scenechange # type: ignore
|
||||
done += 1
|
||||
if done % (clip.num_frames // 200) == 0:
|
||||
if done % max(1, clip.num_frames // 200) == 0:
|
||||
progress_set_progress(100 * done / clip.num_frames)
|
||||
return f
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user