mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 20:47:08 +08:00
修复rtp负载长度计算偏差
This commit is contained in:
parent
8ba4c97286
commit
035a32ec24
@ -117,7 +117,7 @@ bool RtpReceiver::handleOneRtp(int track_index,SdpTrack::Ptr &track, unsigned ch
|
||||
rtp.offset += ext;
|
||||
}
|
||||
|
||||
if(rtp_raw_len <= rtp.offset){
|
||||
if(rtp_raw_len + 4 <= rtp.offset){
|
||||
WarnL << "无有效负载的rtp包:" << rtp_raw_len << " <= " << (int)rtp.offset;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user