diff --git a/lib/matplotlib/animation.py b/lib/matplotlib/animation.py index 6ef1a04d7f35..a30675fd1271 100644 --- a/lib/matplotlib/animation.py +++ b/lib/matplotlib/animation.py @@ -597,7 +597,8 @@ def isAvailable(cls): # NOTE: when removed, remove the same method in AVConvBase. and b'LibAv' not in subprocess.run( [cls.bin_path()], creationflags=subprocess_creation_flags, - stdout=subprocess.DEVNULL, stderr=subprocess.PIPE).stderr) + stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL, + stderr=subprocess.PIPE).stderr) # Combine FFMpeg options with pipe-based writing