Index: webrtc/modules/video_processing/test/video_processing_unittest.cc |
diff --git a/webrtc/modules/video_processing/test/video_processing_unittest.cc b/webrtc/modules/video_processing/test/video_processing_unittest.cc |
index 259829ad8f8339c5f5cb8174559c5fa884bcbb80..f5cd9cab514a201e3790fbac6403dc5620259f5e 100644 |
--- a/webrtc/modules/video_processing/test/video_processing_unittest.cc |
+++ b/webrtc/modules/video_processing/test/video_processing_unittest.cc |
@@ -249,8 +249,7 @@ void TestSize(const VideoFrame& source_frame, |
WriteProcessedFrameForVisualInspection(source_frame, *out_frame); |
// Scale |resampled_source_frame| back to the source scale. |
- VideoFrame resampled_source_frame; |
- resampled_source_frame.ShallowCopy(*out_frame); |
+ VideoFrame resampled_source_frame(*out_frame); |
// Compute PSNR against the cropped source frame and check expectation. |
PreprocessFrameAndVerify(resampled_source_frame, |
cropped_source.width(), |