rtp ntp时间戳采用透传方式 (#2719)

This commit is contained in:
夏楚
2023-07-29 23:04:26 +08:00
committed by GitHub
parent 5a2bf8d196
commit 63a50104fa
2 changed files with 10 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ RtpPacket::Ptr RtpInfo::makeRtp(TrackType type, const void* data, size_t len, bo
++_seq;
header->stamp = htonl(uint64_t(stamp) * _sample_rate / 1000);
header->ssrc = htonl(_ssrc);
rtp->ntp_stamp = stamp;
//有效负载
if (data) {
memcpy(&ptr[RtpPacket::kRtpHeaderSize + RtpPacket::kRtpTcpHeaderSize], data, len);