mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-21 01:13:37 +08:00
优化rtp时间戳生成规则
This commit is contained in:
parent
ff5dc2581a
commit
6df77fc908
@ -578,6 +578,9 @@ void RtspPlayer::onRecvRTP_l(const RtpPacket::Ptr &rtppt, int trackidx){
|
||||
_aui64RtpRecv[trackidx] ++;
|
||||
_aui16NowSeq[trackidx] = rtppt->sequence;
|
||||
_aiNowStamp[trackidx] = rtppt->timeStamp;
|
||||
if( _aiFistStamp[trackidx] == 0){
|
||||
_aiFistStamp[trackidx] = _aiNowStamp[trackidx];
|
||||
}
|
||||
|
||||
rtppt->timeStamp -= _aiFistStamp[trackidx];
|
||||
onRecvRTP_l(rtppt,_aTrackInfo[trackidx]);
|
||||
|
Loading…
Reference in New Issue
Block a user