From c1ef452841a30593e1edcb9994bdca02a877aeea Mon Sep 17 00:00:00 2001 From: Sarthak Munshi Date: Fri, 1 Sep 2023 17:24:04 -0700 Subject: [PATCH] Use mkstemp instead of unsafe mktemp --- ffmpeg/_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg/_view.py b/ffmpeg/_view.py index 31955afd..5663b4db 100644 --- a/ffmpeg/_view.py +++ b/ffmpeg/_view.py @@ -43,7 +43,7 @@ def view(stream_spec, detail=False, filename=None, pipe=False, **kwargs): if pipe and filename is not None: raise ValueError('Can\'t specify both `filename` and `pipe`') elif not pipe and filename is None: - filename = tempfile.mktemp() + filename = tempfile.mkstemp()[1] nodes = get_stream_spec_nodes(stream_spec)