From c9d3c5b516329d17e962b292de1124ce58dfc1b1 Mon Sep 17 00:00:00 2001 From: xia-chu <771730766@qq.com> Date: Fri, 24 Oct 2025 16:45:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E5=8F=91rtp=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=85=B3=E9=97=ADsrtp=E9=98=B2=E9=87=8D=E6=94=BE=E6=94=BB?= =?UTF-8?q?=E5=87=BB=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webrtc/SrtpSession.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webrtc/SrtpSession.cpp b/webrtc/SrtpSession.cpp index 8aaa368a..1f0778e2 100644 --- a/webrtc/SrtpSession.cpp +++ b/webrtc/SrtpSession.cpp @@ -204,7 +204,11 @@ SrtpSession::SrtpSession(Type type, CryptoSuite cryptoSuite, uint8_t *key, size_ policy.key = key; // Required for sending RTP retransmission without RTX. policy.allow_repeat_tx = 1; - policy.window_size = 1024; + if (type == Type::OUTBOUND) { + policy.window_size = 0x8000 - 1; + } else { + policy.window_size = 1024; + } policy.next = nullptr; // Set the SRTP session.