忽略一些无效rtp包

This commit is contained in:
xiongziliang 2019-04-24 09:25:08 +08:00
parent 0f6d4ca629
commit d295d9bd4c

View File

@ -98,7 +98,9 @@ bool RtpReceiver::handleOneRtp(int iTrackidx,SdpTrack::Ptr &track, unsigned char
ext = (AV_RB16(pucData + rtppt.offset - 2) + 1) << 2;
rtppt.offset += ext;
}
if(rtppt.length - rtppt.offset <= 0){
return false;
}
memcpy(rtppt.payload + 4, pucData, uiLen);
/////////////////////////////////RTP排序逻辑///////////////////////////////////