From 7da1f6af236e7462c6e69915a8b321b0ebf886a2 Mon Sep 17 00:00:00 2001 From: Artem Eltyshev Date: Tue, 9 Feb 2021 17:43:40 +0300 Subject: [PATCH] Support zero index stream selectors --- ffmpeg/_run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg/_run.py b/ffmpeg/_run.py index c9cbb7c..4e7d99b 100644 --- a/ffmpeg/_run.py +++ b/ffmpeg/_run.py @@ -48,7 +48,7 @@ def _get_input_args(input_node): def _format_input_stream_name(stream_name_map, edge, is_final_arg=False): prefix = stream_name_map[edge.upstream_node, edge.upstream_label] - if not edge.upstream_selector: + if edge.upstream_selector is None: suffix = '' else: suffix = ':{}'.format(edge.upstream_selector)