Skip to content

Commit 991eec1

Browse files
authored
Merge pull request #7503 from efiring/fix_animation_r_option
BUG: fix animation error introduced in #7208
2 parents 5d14495 + 7fb02b2 commit 991eec1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/matplotlib/animation.py

+2-3
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)