Fix bug with SDP rid, clear only overflow. (#3723)

This commit is contained in:
Raja Subramanian
2025-06-12 14:04:13 -07:00
committed by GitHub
parent 8f6c3a9b4e
commit 4ec828ce00
+1 -1
View File
@@ -1019,7 +1019,7 @@ func (p *ParticipantImpl) updateRidsFromSDP(offer *webrtc.SessionDescription) {
for i := 0; i < n; i++ {
pti.sdpRids[i] = rids[i]
}
for i := 0; i < len(pti.sdpRids); i++ {
for i := n; i < len(pti.sdpRids); i++ {
pti.sdpRids[i] = ""
}