Merge 66ac7f975a8790726f1864374ed0be0a6f766f2a into df129c7ba30aaa9ffffb81a48f53aa7253b0b4e6

This commit is contained in:
Curtiola 2025-03-22 15:26:01 -06:00 committed by GitHub
commit 5997ea40f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -149,7 +149,7 @@ def _get_output_args(node, stream_name_map):
@output_operator() @output_operator()
def get_args(stream_spec, overwrite_output=False): def get_args(stream_spec, overwrite_output=None):
"""Build command-line arguments to be passed to ffmpeg.""" """Build command-line arguments to be passed to ffmpeg."""
nodes = get_stream_spec_nodes(stream_spec) nodes = get_stream_spec_nodes(stream_spec)
args = [] args = []
@ -170,6 +170,8 @@ def get_args(stream_spec, overwrite_output=False):
args += reduce(operator.add, [_get_global_args(node) for node in global_nodes], []) args += reduce(operator.add, [_get_global_args(node) for node in global_nodes], [])
if overwrite_output: if overwrite_output:
args += ['-y'] args += ['-y']
elif overwrite_output == False:
args += ['-n']
return args return args