修复rtp(tcp)获取ssrc失败的bug

This commit is contained in:
xiongziliang 2019-12-06 20:18:08 +08:00
parent adf0e09262
commit 655a30081b

View File

@ -67,7 +67,7 @@ void RtpSession::onManager() {
void RtpSession::onRtpPacket(const char *data, uint64_t len) {
if(!_ssrc){
_ssrc = RtpSelector::getSSRC(data,len);
_ssrc = RtpSelector::getSSRC(data + 2,len - 2);
_process = RtpSelector::Instance().getProcess(_ssrc, true);
}
_process->inputRtp(data + 2,len - 2,&addr);