mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-04 01:37:33 +08:00
优化GOP相关逻辑
This commit is contained in:
@@ -72,6 +72,8 @@ private:
|
||||
}
|
||||
void onRecvRTP(const RtpPacket::Ptr &rtp, const SdpTrack::Ptr &track) override {
|
||||
if(_pRtspMediaSrc){
|
||||
// rtsp直接代理是无法判断该rtp是否是I帧,所以GOP缓存基本是无效的
|
||||
// 为了减少内存使用,那么我们设置为一直关键帧以便清空GOP缓存
|
||||
_pRtspMediaSrc->onWrite(rtp,true);
|
||||
}
|
||||
_delegate->inputRtp(rtp);
|
||||
|
||||
Reference in New Issue
Block a user