mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Merge pull request #1542 from BigRoy/enhancement/oiio_input_do_not_repeat_input_channels
ExtractOIIOTool: Avoid crash on R=Y,G=Y,B=Y usage in transcoding
This commit is contained in:
commit
0dc9f174d4
1 changed files with 2 additions and 1 deletions
|
|
@ -1545,7 +1545,8 @@ def get_oiio_input_and_channel_args(oiio_input_info, alpha_default=None):
|
|||
channels_arg += ",A={}".format(float(alpha_default))
|
||||
input_channels.append("A")
|
||||
|
||||
input_channels_str = ",".join(input_channels)
|
||||
# Make sure channels are unique, but preserve order to avoid oiiotool crash
|
||||
input_channels_str = ",".join(list(dict.fromkeys(input_channels)))
|
||||
|
||||
subimages = oiio_input_info.get("subimages")
|
||||
input_arg = "-i"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue