Index: webrtc/modules/rtp_rtcp/source/forward_error_correction.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc b/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc |
index b85d813790d57d099eda23688d211e4f9b73ba5a..623c658a17401b877bd6748471f1e7ed8b9f3552 100644 |
--- a/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc |
+++ b/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc |
@@ -15,6 +15,7 @@ |
#include <algorithm> |
#include <iterator> |
+#include <memory> |
#include "webrtc/base/checks.h" |
#include "webrtc/base/logging.h" |
@@ -163,7 +164,7 @@ int32_t ForwardErrorCorrection::GenerateFEC(const PacketList& media_packet_list, |
// -- Generate packet masks -- |
// Always allocate space for a large mask. |
- rtc::scoped_ptr<uint8_t[]> packet_mask( |
+ std::unique_ptr<uint8_t[]> packet_mask( |
new uint8_t[num_fec_packets * kMaskSizeLBitSet]); |
memset(packet_mask.get(), 0, num_fec_packets * num_mask_bytes); |
internal::GeneratePacketMasks(num_media_packets, num_fec_packets, |