From d3a58521c873d46426f07ea2315e5649c6a82a5c Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 4 Apr 2019 10:02:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84rtmp=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=80=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/RtmpMuxer/H264RtmpCodec.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/RtmpMuxer/H264RtmpCodec.cpp b/src/RtmpMuxer/H264RtmpCodec.cpp index 18d8336d..5baa9924 100644 --- a/src/RtmpMuxer/H264RtmpCodec.cpp +++ b/src/RtmpMuxer/H264RtmpCodec.cpp @@ -95,6 +95,14 @@ inline void H264RtmpDecoder::onGetH264_l(const char* pcData, int iLen, uint32_t onGetH264(pcData, iLen, dts , pts); } break; + case H264Frame::NAL_SPS: { + _sps.assign(pcData, iLen); + } + break; + case H264Frame::NAL_PPS:{ + _pps.assign(pcData, iLen); + } + break; default: break; }