From 2f82c89278b2ec83e460ca6ddadbbe47ce1e8b9e Mon Sep 17 00:00:00 2001 From: wxf Date: Sun, 18 Jul 2021 17:28:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=BD=E7=95=A5=E6=B5=B7=E5=BA=B7=20PS=20?= =?UTF-8?q?=E6=B5=81=E4=B8=AD=E7=9A=84=200xBD=20=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtp/Decoder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Rtp/Decoder.cpp b/src/Rtp/Decoder.cpp index 5c011ae8..68243552 100644 --- a/src/Rtp/Decoder.cpp +++ b/src/Rtp/Decoder.cpp @@ -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;