忽略海康 PS 流中的 0xBD 包

This commit is contained in:
wxf 2021-07-18 17:28:11 +08:00
parent 892b2d2ef9
commit 2f82c89278

View File

@ -203,7 +203,8 @@ void DecoderImp::onDecode(int stream,int codecid,int flags,int64_t pts,int64_t d
}
default:
if (codecid != 0) {
// 海康的 PS 流中会有 codecid 为 0xBD 的包
if (codecid != 0 && codecid != 0xBD) {
if (_last_unsported_print.elapsedTime() / 1000 > 5) {
_last_unsported_print.resetTime();
WarnL << "unsupported codec type:" << getCodecName(codecid) << " " << (int) codecid;