Index: webrtc/test/testsupport/metrics/video_metrics.cc |
diff --git a/webrtc/test/testsupport/metrics/video_metrics.cc b/webrtc/test/testsupport/metrics/video_metrics.cc |
index 947b81d442b29c4f4132224b7158002874be83ff..ee9aa340ff2a4005e9d16dc89f33e68ce4cdc119 100644 |
--- a/webrtc/test/testsupport/metrics/video_metrics.cc |
+++ b/webrtc/test/testsupport/metrics/video_metrics.cc |
@@ -14,6 +14,7 @@ |
#include <stdio.h> |
#include <algorithm> // min_element, max_element |
+#include <memory> |
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
#include "webrtc/video_frame.h" |
@@ -111,8 +112,8 @@ int CalculateMetrics(VideoMetricsType video_metrics_type, |
const size_t frame_length = 3 * width * height >> 1; |
VideoFrame ref_frame; |
VideoFrame test_frame; |
- rtc::scoped_ptr<uint8_t[]> ref_buffer(new uint8_t[frame_length]); |
- rtc::scoped_ptr<uint8_t[]> test_buffer(new uint8_t[frame_length]); |
+ std::unique_ptr<uint8_t[]> ref_buffer(new uint8_t[frame_length]); |
+ std::unique_ptr<uint8_t[]> test_buffer(new uint8_t[frame_length]); |
// Set decoded image parameters. |
int half_width = (width + 1) / 2; |