Refactor reference frame invalidation checks into one function

This commit is contained in:
Cameron Gutman
2017-11-30 23:14:11 -08:00
parent 26fe1cb22c
commit 069f1475b6
4 changed files with 10 additions and 9 deletions

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