From 4b37647ce1c94f046acd443a8167979483f72ebd Mon Sep 17 00:00:00 2001 From: Austin Mroz Date: Wed, 28 Jan 2026 23:41:42 -0800 Subject: [PATCH] Remove incorrect nested decode --- comfy_api/latest/_input_impl/video_types.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/comfy_api/latest/_input_impl/video_types.py b/comfy_api/latest/_input_impl/video_types.py index befe438bb..57c6df656 100644 --- a/comfy_api/latest/_input_impl/video_types.py +++ b/comfy_api/latest/_input_impl/video_types.py @@ -126,8 +126,7 @@ class VideoFromFile(VideoInput): else container.demux(video_stream) ) for packet in frame_iterator: - for _ in packet.decode(): - frame_count += 1 + frame_count += 1 if frame_count > 0: return float(frame_count / video_stream.average_rate) - self.start_time