Skip to content

Commit 270a232

Browse files
author
chenliming
committed
修改丢帧一个小bug
1 parent 037dbde commit 270a232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LFLiveKit/upload/LFStreamingBuffer.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ - (NSArray*)expirePFrames{
111111
LFVideoFrame *videoFrame = (LFVideoFrame*)frame;
112112
if(videoFrame.isKeyFrame && pframes.count > 0){
113113
break;
114-
}else{
114+
}else if(!videoFrame.isKeyFrame){
115115
[pframes addObject:frame];
116116
}
117117
}

0 commit comments

Comments
 (0)