精简H264Frame对象,删除多余字段

This commit is contained in:
xiongziliang
2019-08-01 14:39:09 +08:00
parent 2e95c3b2fa
commit e13ae419ae
5 changed files with 25 additions and 31 deletions

View File

@@ -80,7 +80,6 @@ bool H264RtmpDecoder::decodeRtmp(const RtmpPacket::Ptr &pkt) {
inline void H264RtmpDecoder::onGetH264(const char* pcData, int iLen, uint32_t dts,uint32_t pts) {
#if 1
_h264frame->type = H264_TYPE(pcData[0]);
_h264frame->timeStamp = dts;
_h264frame->ptsStamp = pts;
_h264frame->buffer.assign("\x0\x0\x0\x1", 4); //添加264头