From 84baf920c1309e0ce08aede60a4ae968da896186 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Wed, 1 Dec 2021 17:02:06 +0800 Subject: [PATCH] =?UTF-8?q?GB28181:=20ps=E8=A7=A3=E6=9E=90=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E8=A7=A6=E5=8F=91=E6=96=AD=E8=A8=80=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E4=B8=A2=E5=BC=83=E6=89=80=E6=9C=89=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtp/PSDecoder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Rtp/PSDecoder.cpp b/src/Rtp/PSDecoder.cpp index 6da45104..b0e405e6 100644 --- a/src/Rtp/PSDecoder.cpp +++ b/src/Rtp/PSDecoder.cpp @@ -71,7 +71,8 @@ const char *PSDecoder::onSearchPacketTail(const char *data, size_t len) { InfoL << "解析 ps 异常: bytes=" << len << ", exception=" << ex.what() << ", hex=" << hexdump(data, MIN(len, 32)); - return nullptr; + //触发断言,解析失败,丢弃所有数据 + return data + len; } }