Skip to content

Commit

Permalink
Fix issue #2330 audio write wrong fps
Browse files Browse the repository at this point in the history
Fixes a bug that is not setting the instance 'fps' value when it has the attribute, but doing it when it doesn't.
  • Loading branch information
Implosiv3 authored Jan 20, 2025
1 parent cb02c8f commit 70ef9f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moviepy/audio/AudioClip.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ def write_audiofile(
"""
if not fps:
if hasattr(self, "fps"):
fps = 44100
else:
fps = self.fps
else:
fps = 44100

if codec is None:
name, ext = os.path.splitext(os.path.basename(filename))
Expand Down

0 comments on commit 70ef9f7

Please sign in to comment.