Skip to content

Commit c7a517c

Browse files
Make pyav loading code handle tRNS PNG. (Comfy-Org#13607)
1 parent e514119 commit c7a517c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

comfy_api/latest/_input_impl/video_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def get_components_internal(self, container: InputContainer) -> VideoComponents:
284284

285285
if not checked_alpha:
286286
for comp in frame.format.components:
287-
if comp.is_alpha:
287+
if comp.is_alpha or frame.format.name == "pal8":
288288
alphas = []
289289
image_format = 'gbrapf32le'
290290
break

0 commit comments

Comments
 (0)