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:
Jakub Trllo 2025-11-12 09:48:36 +01:00 committed by GitHub
commit 0dc9f174d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"