优化rtp统计性能

This commit is contained in:
xiongziliang
2021-01-31 19:55:47 +08:00
parent 070bf19cb5
commit 51435d955c
5 changed files with 79 additions and 53 deletions

View File

@@ -204,7 +204,7 @@ void RtspPlayer::handleResDESCRIBE(const Parser& parser) {
throw std::runtime_error("onCheckSDP faied");
}
for (auto &track : _sdp_track) {
_rtcp_context.emplace_back(std::make_shared<RtcpContext>(track->_samplerate));
_rtcp_context.emplace_back(std::make_shared<RtcpContext>(track->_samplerate, true));
}
sendSetup(0);
}