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; }