Index: webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu.cc |
diff --git a/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu.cc b/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu.cc |
index 322c213f7b368435e6d79fa6cc8a639bac8a97d3..8328a56cb7318c72c4ae81e45bd04d40203ce3c7 100644 |
--- a/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu.cc |
+++ b/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu.cc |
@@ -14,6 +14,7 @@ |
#if defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED) |
#include <CoreFoundation/CoreFoundation.h> |
+#include <memory> |
#include <vector> |
#include "webrtc/base/checks.h" |
@@ -139,7 +140,7 @@ bool H264CMSampleBufferToAnnexBBuffer( |
} |
RTC_DCHECK_EQ(bytes_remaining, (size_t)0); |
- rtc::scoped_ptr<webrtc::RTPFragmentationHeader> header; |
+ std::unique_ptr<webrtc::RTPFragmentationHeader> header; |
header.reset(new webrtc::RTPFragmentationHeader()); |
header->VerifyAndAllocateFragmentationHeader(frag_offsets.size()); |
RTC_DCHECK_EQ(frag_lengths.size(), frag_offsets.size()); |