GB28181: ps解析失败触发断言时,丢弃所有数据

This commit is contained in:
ziyue 2021-12-01 17:02:06 +08:00
parent 78bcd9e868
commit 84baf920c1

View File

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