Skip to content

Commit

Permalink
Fixed 'freeze' FX not freezing at the end with 't=end' argument
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Jan 16, 2021
1 parent 646674c commit 5982925
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed positioning error generating frames in `CompositeVideoClip` [\#1420](https://github.com/Zulko/moviepy/pull/1420)
- Changed deprecated `tostring` method by `tobytes` in `video.io.gif_writers::write_gif` [\#1429](https://github.com/Zulko/moviepy/pull/1429)
- Fixed calling `audio_normalize` on a clip with no sound causing `ZeroDivisionError` [\#1401](https://github.com/Zulko/moviepy/pull/1401)
- Fixed freezing clip at the end with `freeze` FX freezing at duration minus 1 second [\#1461](https://github.com/Zulko/moviepy/pull/1461)


## [v2.0.0.dev2](https://github.com/zulko/moviepy/tree/v2.0.0.dev2) (2020-10-05)
Expand Down
2 changes: 1 addition & 1 deletion moviepy/video/fx/freeze.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def freeze(clip, t=0, freeze_duration=None, total_duration=None, padding_end=0):
"""

if t == "end":
t = clip.duration - padding_end - 1
t = clip.duration - padding_end - 1 / clip.fps

if freeze_duration is None:
freeze_duration = total_duration - clip.duration
Expand Down

0 comments on commit 5982925

Please sign in to comment.