Index: webrtc/modules/video_processing/brightness_detection.cc |
diff --git a/webrtc/modules/video_processing/brightness_detection.cc b/webrtc/modules/video_processing/brightness_detection.cc |
index 7455cf975917c08c629e4e63d3fd9c083d11e1ee..1008c259ed654848cc93d221cef8eed52a08b969 100644 |
--- a/webrtc/modules/video_processing/brightness_detection.cc |
+++ b/webrtc/modules/video_processing/brightness_detection.cc |
@@ -61,7 +61,7 @@ int32_t VPMBrightnessDetection::ProcessFrame( |
if (prop_high < 0.4) { |
if (stats.mean < 90 || stats.mean > 170) { |
// Standard deviation of Y |
- const uint8_t* buffer = frame.buffer(kYPlane); |
+ const uint8_t* buffer = frame.video_frame_buffer()->DataY(); |
float std_y = 0; |
for (int h = 0; h < height; h += (1 << stats.sub_sampling_factor)) { |
int row = h * width; |