Skip to content

Commit e740dfd

Browse files
Fix warning in audio save nodes. (comfyanonymous#8818)
1 parent 7eab7d2 commit e740dfd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

comfy_extras/nodes_audio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def save_audio(self, audio, filename_prefix="ComfyUI", format="flac", prompt=Non
168168

169169
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')
170170
frame.sample_rate = sample_rate
171+
frame.pts = 0
171172
output_container.mux(out_stream.encode(frame))
172173

173174
# Flush encoder

0 commit comments

Comments
 (0)