Skip to content

Commit

Permalink
vapoursynth: Fix division by zero in aegisub_vs.py progress indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1t3cht committed May 19, 2024
1 parent 9683959 commit 9b0fef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automation/vapoursynth/aegisub_vs.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def _cb(n: int, f: vs.VideoFrame) -> vs.VideoFrame:
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

Expand Down

0 comments on commit 9b0fef1

Please sign in to comment.