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; }