Merge branch 'vapoursynth' into feature

This commit is contained in:
arch1t3cht 2024-05-19 21:31:48 +02:00
commit 49feee6b0b

View file

@ -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