添加RTP异常包处理逻辑

This commit is contained in:
xiongziliang
2019-04-24 11:40:54 +08:00
parent 9ce5c146a9
commit c0d3185a38
4 changed files with 11 additions and 2 deletions

View File

@@ -447,6 +447,7 @@ void RtspPlayer::onWholeRtspPacket(Parser &parser) {
void RtspPlayer::onRtpPacket(const char *data, uint64_t len) {
if(len > 1600){
//没有大于MTU的包
WarnL << "大于MTU的RTP包:" << len << ",来自:" << get_peer_ip();
return;
}
int trackIdx = -1;