From 06bcece24bcd76d6f09b1c1ebb1c4bc9314e0522 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Fri, 17 Aug 2018 07:11:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=BD=E7=95=A5sps/pps/b/p/idr=E4=B9=8B?= =?UTF-8?q?=E5=A4=96=E7=9A=84=E5=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/RtpParser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Rtsp/RtpParser.cpp b/src/Rtsp/RtpParser.cpp index 0d5a4a8d..4e96c1eb 100644 --- a/src/Rtsp/RtpParser.cpp +++ b/src/Rtsp/RtpParser.cpp @@ -285,8 +285,11 @@ inline void RtpParser::_onGetH264(H264Frame& frame) { case 8://PPS m_strPPS=frame.data; break; + case 1: + //B or P + onGetH264(frame); + break; default: - onGetH264(frame); break; } }