优化rtp性能

This commit is contained in:
xia-chu
2021-02-05 11:28:50 +08:00
parent b0e1d5d6aa
commit c5cfbce241
13 changed files with 44 additions and 31 deletions

View File

@@ -494,10 +494,10 @@ void RtspPlayer::onRtcpPacket(int track_idx, SdpTrack::Ptr &track, uint8_t *data
}
}
void RtspPlayer::onRtpSorted(const RtpPacket::Ptr &rtppt, int trackidx){
void RtspPlayer::onRtpSorted(RtpPacket::Ptr rtppt, int trackidx){
_stamp[trackidx] = rtppt->getStampMS();
_rtp_recv_ticker.resetTime();
onRecvRTP(rtppt, _sdp_track[trackidx]);
onRecvRTP(std::move(rtppt), _sdp_track[trackidx]);
}
float RtspPlayer::getPacketLossRate(TrackType type) const{