Skip to content

Commit

Permalink
Merge branch 'vapoursynth' into feature
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1t3cht committed May 19, 2024
2 parents 1c22bb3 + 9b0fef1 commit 49feee6
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 49feee6

Please sign in to comment.