Index: webrtc/video/video_encoder_unittest.cc |
diff --git a/webrtc/video/video_encoder_unittest.cc b/webrtc/video/video_encoder_unittest.cc |
index 0f28f891634fad5326676659cc95fe6ce7dd61d1..f2c3ea61c46636af85979e7b94945f4aca5e5656 100644 |
--- a/webrtc/video/video_encoder_unittest.cc |
+++ b/webrtc/video/video_encoder_unittest.cc |
@@ -107,11 +107,11 @@ class VideoEncoderSoftwareFallbackWrapperTest : public ::testing::Test { |
void VideoEncoderSoftwareFallbackWrapperTest::EncodeFrame() { |
frame_.CreateEmptyFrame(kWidth, kHeight, kWidth, (kWidth + 1) / 2, |
(kWidth + 1) / 2); |
- memset(frame_.buffer(webrtc::kYPlane), 16, |
+ memset(frame_.video_frame_buffer()->MutableDataY(), 16, |
frame_.allocated_size(webrtc::kYPlane)); |
- memset(frame_.buffer(webrtc::kUPlane), 128, |
+ memset(frame_.video_frame_buffer()->MutableDataU(), 128, |
frame_.allocated_size(webrtc::kUPlane)); |
- memset(frame_.buffer(webrtc::kVPlane), 128, |
+ memset(frame_.video_frame_buffer()->MutableDataV(), 128, |
frame_.allocated_size(webrtc::kVPlane)); |
std::vector<FrameType> types(1, kVideoFrameKey); |