Commit 250d9f8e by xiongziliang

优化GB28181 tcp推流

parent 76a55c6c
...@@ -57,8 +57,8 @@ void RtpSession::onManager() { ...@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论