Skip to content

Commit

Permalink
fix drop bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chenliming committed Nov 11, 2016
1 parent ebc59bc commit b3a8d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LFLiveKit/publish/LFStreamingBuffer.m
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ - (void)removeExpireFrame {

NSArray *iFrames = [self expireIFrames];///<  删除一个I帧(但一个I帧可能对应多个nal)
self.lastDropFrames += [iFrames count];
if (iFrames) {
if (iFrames && iFrames.count > 0) {
[self.list removeObjectsInArray:iFrames];
return;
}
Expand Down

0 comments on commit b3a8d96

Please sign in to comment.