Skip to content

Commit a65b9c1

Browse files
committed
DOC: add comment about buffer overrun at DEBUG
1 parent f31d35d commit a65b9c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/animation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,8 @@ def _args(self):
667667
'-s', '%dx%d' % self.frame_size, '-pix_fmt', self.frame_format,
668668
'-r', str(self.fps)]
669669
# Logging is quieted because subprocess.PIPE has limited buffer size.
670-
670+
# If you have a lot of frames in your animation and set logging to
671+
# DEBUG, you will have a buffer overrun.
671672
if (_log.getEffectiveLevel() > logging.DEBUG):
672673
args += ['-loglevel', 'quiet']
673674
args += ['-i', 'pipe:'] + self.output_args

0 commit comments

Comments
 (0)