rtp过滤逻辑限制version字段

This commit is contained in:
xia-chu 2023-09-02 10:50:25 +08:00
parent fef85da771
commit c35b5e9215

View File

@ -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) {