diff --git a/LFLiveKit/publish/LFStreamingBuffer.m b/LFLiveKit/publish/LFStreamingBuffer.m index 34ece83f..15ae4f35 100755 --- a/LFLiveKit/publish/LFStreamingBuffer.m +++ b/LFLiveKit/publish/LFStreamingBuffer.m @@ -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; }