mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-01 04:42:31 +08:00
Make pyav loading code handle tRNS PNG. (#13607)
This commit is contained in:
parent
e514119e1e
commit
c7a517c2f9
@ -284,7 +284,7 @@ class VideoFromFile(VideoInput):
|
|||||||
|
|
||||||
if not checked_alpha:
|
if not checked_alpha:
|
||||||
for comp in frame.format.components:
|
for comp in frame.format.components:
|
||||||
if comp.is_alpha:
|
if comp.is_alpha or frame.format.name == "pal8":
|
||||||
alphas = []
|
alphas = []
|
||||||
image_format = 'gbrapf32le'
|
image_format = 'gbrapf32le'
|
||||||
break
|
break
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user