mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 20:47:08 +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) {
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user