mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
rtp过滤逻辑限制version字段
This commit is contained in:
parent
fef85da771
commit
c35b5e9215
@ -467,7 +467,7 @@ bool isRtp(const char *buf, size_t size) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
RtpHeader *header = (RtpHeader *)buf;
|
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) {
|
bool isRtcp(const char *buf, size_t size) {
|
||||||
|
Loading…
Reference in New Issue
Block a user