Browse Source

Merge pull request #1028 from tljdebrouwer/fix-reportblock

Correct NTP of Sender Report
Paul-Louis Ageneau 1 year ago
parent
commit
36fa93cbab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/rtp.cpp

+ 1 - 1
src/rtp.cpp

@@ -200,7 +200,7 @@ void RtcpReportBlock::setSeqNo(uint16_t highestSeqNo, uint16_t seqNoCycles) {
 
 void RtcpReportBlock::setJitter(uint32_t jitter) { _jitter = htonl(jitter); }
 
-void RtcpReportBlock::setNTPOfSR(uint64_t ntp) { _lastReport = htonll(ntp >> 16u); }
+void RtcpReportBlock::setNTPOfSR(uint64_t ntp) { _lastReport = htonl((uint32_t)(ntp >> 16)); }
 
 uint32_t RtcpReportBlock::getNTPOfSR() const { return ntohl(_lastReport) << 16u; }