diff --git a/moviepy/audio/AudioClip.py b/moviepy/audio/AudioClip.py index 5aa10e912..3a04b40e1 100644 --- a/moviepy/audio/AudioClip.py +++ b/moviepy/audio/AudioClip.py @@ -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))