Update comfy_api/latest/_input_impl/video_types.py

Adding a comment
This commit is contained in:
Alexis Rolland 2026-06-14 08:52:26 +08:00 committed by GitHub
parent e6077d86e9
commit 3c9f4585f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -324,6 +324,8 @@ class VideoFromFile(VideoInput):
checked_alpha = True checked_alpha = True
# Fix non-deterministic video decode when the video width is not a multiple of 32
# For non-yuvj pixel formats (all H.264/H.265 video)
if image_format in ('gbrpf32le', 'gbrapf32le') and frame.width % 32 != 0: if image_format in ('gbrpf32le', 'gbrapf32le') and frame.width % 32 != 0:
if align_graph is None: if align_graph is None:
pad_w = ((frame.width + 31) // 32) * 32 pad_w = ((frame.width + 31) // 32) * 32