8000 BUG: fix animation error introduced in #7208 · matplotlib/matplotlib@7fb02b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7fb02b2

Browse files
committed
BUG: fix animation error introduced in #7208
1 parent e46e1c0 commit 7fb02b2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/matplotlib/animation.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,10 +512,9 @@ class FFMpegFileWriter(FileMovieWriter, FFMpegBase):
512512
def _args(self):
513513
# Returns the command line parameters for subprocess to use
514514
# ffmpeg to create a movie using a collection of temp images
515-
return [self.bin_path(), # -r option is not needed before -i option
515+
return [self.bin_path(), '-r', str(self.fps),
516516
'-i', self._base_temp_name(),
517-
'-vframes', str(self._frame_counter),
518-
'-r', str(self.fps)] + self.output_args
517+
'-vframes', str(self._frame_counter)] + self.output_args
519518

520519

521520
# Base class of avconv information. AVConv has identical arguments to

0 commit comments

Comments
 (0)
0