Use local time base for NTP in RTCP Sender Report for downtracks. (#1321)

* Use local time base for NTP in RTCP Sender Report for downtracks.

More details in comments in code.

* Remove debug

* RTCPSenderReportInfo -> RTCPSenderReportDataExt

* Get rid of sender report data pointer checks
This commit is contained in:
Raja Subramanian
2023-01-25 11:00:15 +05:30
committed by GitHub
parent 9e3ca1e989
commit c696626fe8
5 changed files with 89 additions and 82 deletions
+2 -2
View File
@@ -633,12 +633,12 @@ func (b *Buffer) SetSenderReportData(rtpTime uint32, ntpTime uint64) {
}
}
func (b *Buffer) GetSenderReportData() *RTCPSenderReportData {
func (b *Buffer) GetSenderReportDataExt() *RTCPSenderReportDataExt {
b.RLock()
defer b.RUnlock()
if b.rtpStats != nil {
return b.rtpStats.GetRtcpSenderReportData()
return b.rtpStats.GetRtcpSenderReportDataExt()
}
return nil