mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-16 13:20:48 +00:00
Refactor reference frame invalidation checks into one function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user