From 19f3b1bd6fca1a6c84bb82965e584733f518ccbe Mon Sep 17 00:00:00 2001 From: xia-chu <771730766@qq.com> Date: Sun, 21 Feb 2021 21:26:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E6=89=93=E5=8D=B0=E8=BF=87?= =?UTF-8?q?=E5=A4=9A=E8=B0=83=E8=AF=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtp/GB28181Process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rtp/GB28181Process.cpp b/src/Rtp/GB28181Process.cpp index f8bd6b90..ca5b71da 100644 --- a/src/Rtp/GB28181Process.cpp +++ b/src/Rtp/GB28181Process.cpp @@ -86,7 +86,7 @@ const char *GB28181Process::onSearchPacketTail(const char *packet,size_t bytes){ } catch (std::exception &ex) { InfoL << "解析ps或ts异常: bytes=" << bytes << " ,exception=" << ex.what() - << " ,hex=" << hexdump((uint8_t *) packet, bytes); + << " ,hex=" << hexdump((uint8_t *) packet, MIN(bytes,32)); if (remainDataSize() > 256 * 1024) { //缓存太多数据无法处理则上抛异常 throw;