Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix warning in audio save nodes. (#8818)

comfyanonymouse740dfd8061e
diff --git a/comfy_extras/nodes_audio.py b/comfy_extras/nodes_audio.py
index aca09e4cc..8cd647846 100644
--- a/comfy_extras/nodes_audio.py
+++ b/comfy_extras/nodes_audio.py
@@ -168,6 +168,7 @@ def save_audio(self, audio, filename_prefix="ComfyUI", format="flac", prompt=Non
frame = av.AudioFrame.from_ndarray(waveform.movedim(0, 1).reshape(1, -1).float().numpy(), format='flt', layout='mono' if waveform.shape[0] == 1 else 'stereo')
frame.sample_rate = sample_rate
+ frame.pts = 0
output_container.mux(out_stream.encode(frame))
# Flush encoder