mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
忽略一些无效rtp包
This commit is contained in:
parent
0f6d4ca629
commit
d295d9bd4c
@ -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排序逻辑///////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user