Commit 4d1a0e47 by xiongziliang

删除多余代码逻辑

parent df4989cc
...@@ -445,11 +445,6 @@ void RtspPlayer::onWholeRtspPacket(Parser &parser) { ...@@ -445,11 +445,6 @@ void RtspPlayer::onWholeRtspPacket(Parser &parser) {
} }
void RtspPlayer::onRtpPacket(const char *data, uint64_t len) { void RtspPlayer::onRtpPacket(const char *data, uint64_t len) {
if(len > 1600){
//没有大于MTU的包
WarnL << "大于MTU的RTP包:" << len << ",来自:" << get_peer_ip();
return;
}
int trackIdx = -1; int trackIdx = -1;
uint8_t interleaved = data[1]; uint8_t interleaved = data[1];
if(interleaved %2 ==0){ if(interleaved %2 ==0){
......
...@@ -186,11 +186,7 @@ void RtspSession::onRtpPacket(const char *data, uint64_t len) { ...@@ -186,11 +186,7 @@ void RtspSession::onRtpPacket(const char *data, uint64_t len) {
if(!_pushSrc){ if(!_pushSrc){
return; return;
} }
if(len > 1600){
//没有大于MTU的包
WarnL << "大于MTU的RTP包:" << len << ",来自:" << get_peer_ip();
return;
}
int trackIdx = -1; int trackIdx = -1;
uint8_t interleaved = data[1]; uint8_t interleaved = data[1];
if(interleaved %2 == 0){ if(interleaved %2 == 0){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论