Index: webrtc/modules/video_processing/test/brightness_detection_test.cc |
diff --git a/webrtc/modules/video_processing/test/brightness_detection_test.cc b/webrtc/modules/video_processing/test/brightness_detection_test.cc |
index abce518e5841f7faffc77692dec3183fb2ca0b46..f34bc573ad5ca7888bc71d16f1e02e44f7faa5f2 100644 |
--- a/webrtc/modules/video_processing/test/brightness_detection_test.cc |
+++ b/webrtc/modules/video_processing/test/brightness_detection_test.cc |
@@ -58,7 +58,7 @@ TEST_F(VideoProcessingTest, MAYBE_BrightnessDetection) { |
0, kVideoRotation_0, &video_frame_)); |
frameNum++; |
- uint8_t* frame = video_frame_.buffer(kYPlane); |
+ uint8_t* frame = video_frame_.video_frame_buffer()->MutableDataY(); |
uint32_t yTmp = 0; |
for (int yIdx = 0; yIdx < width_ * height_; yIdx++) { |
yTmp = frame[yIdx] << 1; |
@@ -95,7 +95,7 @@ TEST_F(VideoProcessingTest, MAYBE_BrightnessDetection) { |
0, kVideoRotation_0, &video_frame_)); |
frameNum++; |
- uint8_t* y_plane = video_frame_.buffer(kYPlane); |
+ uint8_t* y_plane = video_frame_.video_frame_buffer()->MutableDataY(); |
int32_t yTmp = 0; |
for (int yIdx = 0; yIdx < width_ * height_; yIdx++) { |
yTmp = y_plane[yIdx] >> 1; |