support tracks without clock rate

This commit is contained in:
aler9
2022-11-27 21:17:48 +01:00
parent f16cb173b7
commit d521a785c4
9 changed files with 75 additions and 129 deletions

View File

@@ -103,6 +103,10 @@ func (rr *RTCPReceiver) report(ts time.Time) rtcp.Packet {
return nil
}
if rr.clockRate == 0 {
return nil
}
report := &rtcp.ReceiverReport{
SSRC: rr.receiverSSRC,
Reports: []rtcp.ReceptionReport{