修复rtp负载长度计算偏差

This commit is contained in:
xiongziliang 2019-08-20 09:30:39 +08:00
parent 8ba4c97286
commit 035a32ec24

View File

@ -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;
}