From b3a8d96787861c48710cd7e7603095c6633832fc Mon Sep 17 00:00:00 2001 From: chenliming Date: Fri, 11 Nov 2016 10:31:28 +0800 Subject: [PATCH] fix drop bug --- LFLiveKit/publish/LFStreamingBuffer.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }