mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
优化GB28181 tcp推流
This commit is contained in:
parent
76a55c6c08
commit
250d9f8e54
@ -57,8 +57,8 @@ void RtpSession::onManager() {
|
||||
}
|
||||
|
||||
void RtpSession::onRtpPacket(const char *data, uint64_t len) {
|
||||
if (len > 1024 * 2) {
|
||||
throw SockException(Err_shutdown, "rtp包长度异常,发送端可能缓存溢出并覆盖");
|
||||
if (len > 1024 * 10) {
|
||||
throw SockException(Err_shutdown, StrPrinter << "rtp包长度异常(" << len << "),发送端可能缓存溢出并覆盖");
|
||||
}
|
||||
if (!_process) {
|
||||
uint32_t ssrc;
|
||||
|
Loading…
Reference in New Issue
Block a user