1
0
mirror of https://github.com/kkroening/ffmpeg-python.git synced 2025-04-06 04:15:44 +08:00

Remove unnecessary if statement

As requested here: https://github.com/kkroening/ffmpeg-python/pull/62#discussion_r164289616
This commit is contained in:
Silvio Tomatis 2020-09-16 12:47:19 +02:00
parent df18dacda2
commit 0a37ab83f8

@ -159,8 +159,7 @@ def get_args(stream_spec, overwrite_output=False):
filter_nodes = [node for node in sorted_nodes if isinstance(node, (FilterNode, SourceNode))]
stream_name_map = {(node, None): str(i) for i, node in enumerate(input_nodes)}
filter_arg = _get_filter_arg(filter_nodes, outgoing_edge_maps, stream_name_map)
if len(input_nodes) > 0:
args += reduce(operator.add, [_get_input_args(node) for node in input_nodes])
args += reduce(operator.add, [_get_input_args(node) for node in input_nodes])
if filter_arg:
args += ['-filter_complex', filter_arg]
args += reduce(