Skip to content

Commit

Permalink
atzur pr: fix order of blurframes
Browse files Browse the repository at this point in the history
  • Loading branch information
couleurm committed Apr 12, 2024
2 parents d3e3610 + 7fbf7b5 commit 0caa7a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target/scripts/blending.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
def average(clip: vs.VideoNode, weights: List[float], divisor: float = None):
def get_offset_clip(offset: int) -> vs.VideoNode:
if offset > 0:
return clip[0] * offset + clip[:-offset]
return clip[offset:] + clip[-1] * offset
elif offset < 0:
return clip[-offset:] + clip[-1] * (-offset)
return clip[0] * -offset + clip[:offset]
else:
return clip

Expand Down

0 comments on commit 0caa7a2

Please sign in to comment.