mirror of
https://github.com/pion/webrtc.git
synced 2025-12-24 11:51:03 +08:00
Use intersection of codecs to generate rtcp-fb
Update MediaEngine codec creation to take into account remote and local rtcp-fb. Before we would incorrectly always take the remote rtcp-fb and ignore local. Resolves #2943 Resolves #2944 Resolves #1968
This commit is contained in:
@@ -78,6 +78,7 @@ func (t *RTPTransceiver) getCodecs() []RTPCodecParameters {
|
||||
if codec.PayloadType == 0 {
|
||||
codec.PayloadType = c.PayloadType
|
||||
}
|
||||
codec.RTCPFeedback = rtcpFeedbackIntersection(codec.RTCPFeedback, c.RTCPFeedback)
|
||||
filteredCodecs = append(filteredCodecs, codec)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user