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; } }