From ad4f0317a5d9356da5a8dad3252fe7813d6438ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E5=90=89=E5=A4=AA?= Date: Thu, 23 Nov 2023 20:57:10 +0800 Subject: [PATCH] =?UTF-8?q?RTC:=20=E4=BF=AE=E5=A4=8D=E4=B8=80=E7=BB=84?= =?UTF-8?q?=E4=B8=A2=E5=8C=85=E5=88=86=E5=A4=9A=E6=AC=A1nack=E5=8F=91?= =?UTF-8?q?=E9=80=81=E6=97=B6blp-vector=E6=B2=A1=E6=9C=89=E8=A2=AB?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webrtc/Nack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/Nack.cpp b/webrtc/Nack.cpp index 8012a16c..a12bfa7e 100644 --- a/webrtc/Nack.cpp +++ b/webrtc/Nack.cpp @@ -258,7 +258,7 @@ uint64_t NackContext::reSendNack() { for (auto it = nack_rtp.begin(); it != nack_rtp.end();) { if (pid == -1) { pid = *it; - vec.resize(FCI_NACK::kBitSize, false); + vec.assign(FCI_NACK::kBitSize, false); ++it; continue; }