From 3c9f4585f95b94ff7666f95b8dacc1bc0b9ac2c9 Mon Sep 17 00:00:00 2001 From: Alexis Rolland Date: Sun, 14 Jun 2026 08:52:26 +0800 Subject: [PATCH] Update comfy_api/latest/_input_impl/video_types.py Adding a comment --- comfy_api/latest/_input_impl/video_types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comfy_api/latest/_input_impl/video_types.py b/comfy_api/latest/_input_impl/video_types.py index e9412089a..92a1298c0 100644 --- a/comfy_api/latest/_input_impl/video_types.py +++ b/comfy_api/latest/_input_impl/video_types.py @@ -324,6 +324,8 @@ class VideoFromFile(VideoInput): 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 align_graph is None: pad_w = ((frame.width + 31) // 32) * 32