mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-29 22:32:23 +08:00
rtp过滤逻辑限制version字段
This commit is contained in:
@@ -467,7 +467,7 @@ bool isRtp(const char *buf, size_t size) {
|
||||
return false;
|
||||
}
|
||||
RtpHeader *header = (RtpHeader *)buf;
|
||||
return ((header->pt < 64) || (header->pt >= 96));
|
||||
return ((header->pt < 64) || (header->pt >= 96)) && header->version == RtpPacket::kRtpVersion;
|
||||
}
|
||||
|
||||
bool isRtcp(const char *buf, size_t size) {
|
||||
|
||||
Reference in New Issue
Block a user