Refactor reference frame invalidation checks into one function

This commit is contained in:
Cameron Gutman committed 2017-11-30 23:14:11 -08:00
1 parent 26fe1cb22c
commit 069f1475b6
4 files changed
+10 -9

No files matched your search

+1 -5
View File
@@ -41,11 +41,7 @@ void initializeVideoDepacketizer(int pktSize) {
lastPacketInStream = -1;
decodingFrame = 0;
firstPacketReceiveTime = 0;
LC_ASSERT(NegotiatedVideoFormat != 0);
strictIdrFrameWait =
!(((NegotiatedVideoFormat & VIDEO_FORMAT_MASK_H264) && (VideoCallbacks.capabilities & CAPABILITY_REFERENCE_FRAME_INVALIDATION_AVC)) ||
(((NegotiatedVideoFormat & VIDEO_FORMAT_MASK_H265) && (VideoCallbacks.capabilities & CAPABILITY_REFERENCE_FRAME_INVALIDATION_HEVC))));
strictIdrFrameWait = !isReferenceFrameInvalidationEnabled();
}
// Free the NAL chain