Skip to content

Commit

Permalink
ditch the last time for a non-existing clip in concatenate_videoclips…
Browse files Browse the repository at this point in the history
…() make_frame(). fixes Zulko#632
  • Loading branch information
timpauli committed Aug 18, 2017
1 parent a7f44df commit ffefce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moviepy/video/compositing/concatenate.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def concatenate_videoclips(clips, method="chain", transition=None,

if method == "chain":
def make_frame(t):
i = max([i for i, e in enumerate(tt) if e <= t])
i = max([i for i, e in zip(range(len(tt) - 1), tt) if e <= t])
return clips[i].get_frame(t - tt[i])

def get_mask(c):
Expand Down

0 comments on commit ffefce2

Please sign in to comment.