This repository has no description

webrtc: never overlap two segments' sample writes master

The playback writer only awaited its errgroup inside the audio branch, so a segment with video but no audio samples let the next segment's writes start while its own were still running — two GoPs' frames interleaved into one RTP track. The per-segment write is extracted as writePacketizedSegment (with a sampleTrack seam for tests) and always awaits both track writers before the next segment is pulled.


+156 -163
2 changed files