新增动态更新rtp server过滤ssrc接口updateRtpServerSSRC(#2390)

This commit is contained in:
xiongziliang
2023-04-21 23:08:48 +08:00
parent c2b8f3e80e
commit b5a0a2e858
5 changed files with 72 additions and 12 deletions

View File

@@ -130,7 +130,7 @@ void RtpSession::onRtpPacket(const char *data, size_t len) {
uint32_t rtp_ssrc = 0;
RtpSelector::getSSRC(data, len, rtp_ssrc);
if (rtp_ssrc != _ssrc) {
WarnP(this) << "ssrc不匹配,rtp已丢弃:" << rtp_ssrc << " != " << _ssrc;
WarnP(this) << "ssrc mismatched, rtp dropped: " << rtp_ssrc << " != " << _ssrc;
return;
}
_process->inputRtp(false, getSock(), data, len, (struct sockaddr *)&_addr);