From 4d1a0e47c8b557d33d89eb89188a4976a53266f4 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Wed, 24 Apr 2019 12:03:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/RtspPlayer.cpp | 5 ----- src/Rtsp/RtspSession.cpp | 6 +----- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Rtsp/RtspPlayer.cpp b/src/Rtsp/RtspPlayer.cpp index 9d8897f8..7db6cd24 100644 --- a/src/Rtsp/RtspPlayer.cpp +++ b/src/Rtsp/RtspPlayer.cpp @@ -445,11 +445,6 @@ 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; uint8_t interleaved = data[1]; if(interleaved %2 ==0){ diff --git a/src/Rtsp/RtspSession.cpp b/src/Rtsp/RtspSession.cpp index 493a0767..9a56edbf 100644 --- a/src/Rtsp/RtspSession.cpp +++ b/src/Rtsp/RtspSession.cpp @@ -186,11 +186,7 @@ void RtspSession::onRtpPacket(const char *data, uint64_t len) { if(!_pushSrc){ return; } - if(len > 1600){ - //没有大于MTU的包 - WarnL << "大于MTU的RTP包:" << len << ",来自:" << get_peer_ip(); - return; - } + int trackIdx = -1; uint8_t interleaved = data[1]; if(interleaved %2 == 0){