完善gop缓存机制,提高秒开率

This commit is contained in:
xiongziliang
2018-10-26 22:58:32 +08:00
parent 2a60fc2610
commit ce5c71c994
3 changed files with 5 additions and 8 deletions

View File

@@ -257,7 +257,7 @@ void H264RtpEncoder::makeH264Rtp(const void* data, unsigned int len, bool mark,
rtppkt->offset = 16;
uint8_t type = ((uint8_t *) (data))[0] & 0x1F;
RtpCodec::inputRtp(rtppkt,type == 5);
RtpCodec::inputRtp(rtppkt,type == 7);
_ui16Sequence++;
_ui32TimeStamp = uiStamp;
}