Time stamp adjustments v2 (I think) (#1875)

* WIP commit

* WIP commit

* WIP commit

* Some clean up
- Removed a chatty debug log
- some spelling, punctuation correction in comments
- missed an `Abs` in check, add it.
This commit is contained in:
Raja Subramanian
2023-07-14 11:47:07 +05:30
committed by GitHub
parent 68e5fa8e1c
commit 4c02a6d717
6 changed files with 320 additions and 253 deletions
+2 -3
View File
@@ -1102,8 +1102,7 @@ func (d *DownTrack) CreateSenderReport() *rtcp.SenderReport {
return nil
}
srFirst, srNewest := d.receiver.GetRTCPSenderReportData(d.forwarder.GetReferenceLayerSpatial())
return d.rtpStats.GetRtcpSenderReport(d.ssrc, srFirst, srNewest)
return d.rtpStats.GetRtcpSenderReport(d.ssrc, d.receiver.GetCalculatedClockRate(d.forwarder.CurrentLayer().Spatial))
}
func (d *DownTrack) writeBlankFrameRTP(duration float32, generation uint32) chan struct{} {
@@ -1542,7 +1541,7 @@ func (d *DownTrack) DebugInfo() map[string]interface{} {
}
}
func (d *DownTrack) getExpectedRTPTimestamp(at time.Time) (uint32, uint64, error) {
func (d *DownTrack) getExpectedRTPTimestamp(at time.Time) (uint64, error) {
return d.rtpStats.GetExpectedRTPTimestamp(at)
}