From 64f73d40799808431a2e2c900025ece6a60a6f4f Mon Sep 17 00:00:00 2001 From: bigcat88 Date: Wed, 8 Jul 2026 15:35:32 +0300 Subject: [PATCH] fix: continue probing audio parameters after a packet decode error instead of dropping stream immediately Signed-off-by: bigcat88 --- comfy_api/latest/_input_impl/video_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_api/latest/_input_impl/video_types.py b/comfy_api/latest/_input_impl/video_types.py index 3ab8fa2d0..9f498a6bb 100644 --- a/comfy_api/latest/_input_impl/video_types.py +++ b/comfy_api/latest/_input_impl/video_types.py @@ -80,7 +80,7 @@ def probe_audio_params(container: InputContainer, audio_stream, max_packets: int try: frames = packet.decode() except av.error.FFmpegError: - return 0, 0 + frames = () if frames: return frames[0].sample_rate, frames[0].layout.nb_channels if i >= max_packets: