完善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

@@ -100,9 +100,10 @@ public:
MediaSource::regist();
_bRegisted = true;
}
} else{
_mapStamp[pkt->typeId] = pkt->timeStamp;
_pRing->write(pkt,pkt->isVideoKeyFrame());
}
_mapStamp[pkt->typeId] = pkt->timeStamp;
_pRing->write(pkt,pkt->isVideoKeyFrame());
}
uint32_t getTimeStamp(TrackType trackType) override {