优化GB28181 tcp推流

This commit is contained in:
xiongziliang 2020-12-19 19:46:18 +08:00
parent 76a55c6c08
commit 250d9f8e54

View File

@ -57,8 +57,8 @@ void RtpSession::onManager() {
} }
void RtpSession::onRtpPacket(const char *data, uint64_t len) { void RtpSession::onRtpPacket(const char *data, uint64_t len) {
if (len > 1024 * 2) { if (len > 1024 * 10) {
throw SockException(Err_shutdown, "rtp包长度异常发送端可能缓存溢出并覆盖"); throw SockException(Err_shutdown, StrPrinter << "rtp包长度异常(" << len << ")");
} }
if (!_process) { if (!_process) {
uint32_t ssrc; uint32_t ssrc;