From 982bf87645809ff37dfc1b927055c1d701ced97f Mon Sep 17 00:00:00 2001 From: Xpl0itU <24777100+Xpl0itU@users.noreply.github.com> Date: Sun, 28 May 2023 18:00:02 +0200 Subject: [PATCH] Fix incorrect path escaping --- ffmpeg/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg/nodes.py b/ffmpeg/nodes.py index e8b28385..ace6499b 100644 --- a/ffmpeg/nodes.py +++ b/ffmpeg/nodes.py @@ -285,7 +285,7 @@ def _get_filter(self, outgoing_edges): if self.name in ('split', 'asplit'): args = [len(outgoing_edges)] - out_args = [escape_chars(x, '\\\'=:') for x in args] + out_args = [x if os.path.exists(x) else escape_chars(x, '\\\'=:') for x in args] out_kwargs = {} for k, v in list(kwargs.items()): k = escape_chars(k, '\\\'=:')