diff --git a/src/Rtp/RtpSession.cpp b/src/Rtp/RtpSession.cpp index 21fb5e2d..cfea27f6 100644 --- a/src/Rtp/RtpSession.cpp +++ b/src/Rtp/RtpSession.cpp @@ -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;