mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-11 08:57:22 +08:00
fix: continue probing audio parameters after a packet decode error instead of dropping stream immediately
Signed-off-by: bigcat88 <bigcat88@icloud.com>
This commit is contained in:
parent
be27c9c3df
commit
64f73d4079
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user