mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
OP-2646 - fix for proper parsing of ffmpeg output arguments
Previous implementation was too simple, values that contained flags anywhere inside were triggering it.
This commit is contained in:
parent
05b443532d
commit
d509234066
1 changed files with 2 additions and 2 deletions
|
|
@ -694,13 +694,13 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
audio_args_dentifiers = ["-af", "-filter:a"]
|
||||
for arg in tuple(output_args):
|
||||
for identifier in video_args_dentifiers:
|
||||
if identifier in arg:
|
||||
if arg.startswith("{} ".format(identifier)):
|
||||
output_args.remove(arg)
|
||||
arg = arg.replace(identifier, "").strip()
|
||||
video_filters.append(arg)
|
||||
|
||||
for identifier in audio_args_dentifiers:
|
||||
if identifier in arg:
|
||||
if arg.startswith("{} ".format(identifier)):
|
||||
output_args.remove(arg)
|
||||
arg = arg.replace(identifier, "").strip()
|
||||
audio_filters.append(arg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue