Fix missing global reinitialization when starting a new stream

This commit is contained in:
Cameron Gutman committed 2026-11-12 21:31:27 -06:00
1 parent ae6633eedc
commit 0b4a44d19c
2 files changed
+2

No files matched your search

+1
View File
@@ -953,6 +953,7 @@ int performRtspHandshake(PSERVER_INFORMATION serverInfo) {
controlStreamId = APP_VERSION_AT_LEAST(7, 1, 431) ? "streamid=control/13/0" : "streamid=control/1/0";
AudioEncryptionEnabled = false;
encryptedRtspEnabled = serverInfo->rtspSessionUrl && strstr(serverInfo->rtspSessionUrl, "rtspenc://");
encryptionSequenceNumber = 0;
encryptionCtx = PltCreateCryptoContext(0);
decryptionCtx = PltCreateCryptoContext(1);
+1
View File
@@ -103,6 +103,7 @@ void initializeVideoDepacketizer(int pktSize) {
firstPacketRtpTimestamp = 0;
lastPacketPayloadLength = 0;
dropStatePending = false;
consecutiveFrameDrops = 0;
atomic_store_explicit(&idrFrameProcessed, false, memory_order_relaxed);
strictIdrFrameWait = !isReferenceFrameInvalidationEnabled();
}