Skip to content

Commit

Permalink
fix clip bounds with temporal averaging
Browse files Browse the repository at this point in the history
  • Loading branch information
emotion3459 authored Oct 7, 2024
1 parent 403a634 commit 71774e8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions vsdeband/noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,6 @@ def _try_grain(src: vs.VideoNode, stre: tuple[float, float] = strength, **args:

grained = _try_grain(base_clip)

if clip.num_frames != grained.num_frames:
if grained.num_frames == 1:
grained = grained.std.Loop(clip.num_frames)
elif grained.num_frames > clip.num_frames:
grained = grained[:clip.num_frames]
else:
grained = grained + grained[-1].std.Loop(clip.num_frames - grained.num_frames)

if input_dep and neutral_out:
grained = clip.std.MakeDiff(grained)

Expand Down

0 comments on commit 71774e8

Please sign in to comment.