Merge pull request #992 from ZLMediaKit/feature/ignore-hik-ps-0xbd

忽略海康 PS 流中的 0xBD 包
This commit is contained in:
夏楚 2021-07-18 19:40:38 +08:00 committed by GitHub
commit 6dbad3fb59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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