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 9e61b51884f75a41532eaf242319314ee2481b38..2d0c68611ea5da8d1d93e937675dafe5e4cdea8d 100644 |
--- a/webrtc/modules/video_processing/test/video_processing_unittest.cc |
+++ b/webrtc/modules/video_processing/test/video_processing_unittest.cc |
@@ -71,12 +71,9 @@ |
video_frame_.CreateEmptyFrame(width_, height_, width_, |
half_width_, half_width_); |
// Clear video frame so DrMemory/Valgrind will allow reads of the buffer. |
- memset(video_frame_.video_frame_buffer()->MutableDataY(), 0, |
- video_frame_.allocated_size(kYPlane)); |
- memset(video_frame_.video_frame_buffer()->MutableDataU(), 0, |
- video_frame_.allocated_size(kUPlane)); |
- memset(video_frame_.video_frame_buffer()->MutableDataV(), 0, |
- video_frame_.allocated_size(kVPlane)); |
+ memset(video_frame_.buffer(kYPlane), 0, video_frame_.allocated_size(kYPlane)); |
+ memset(video_frame_.buffer(kUPlane), 0, video_frame_.allocated_size(kUPlane)); |
+ memset(video_frame_.buffer(kVPlane), 0, video_frame_.allocated_size(kVPlane)); |
const std::string video_file = |
webrtc::test::ResourcePath("foreman_cif", "yuv"); |
source_file_ = fopen(video_file.c_str(), "rb"); |