| Index: webrtc/modules/video_processing/video_processing_impl.cc
|
| diff --git a/webrtc/modules/video_processing/video_processing_impl.cc b/webrtc/modules/video_processing/video_processing_impl.cc
|
| index f34886f10f22ca8361bc535d91041388976da300..e52a055f7ea160d019ee86c40804d29ebf3efb72 100644
|
| --- a/webrtc/modules/video_processing/video_processing_impl.cc
|
| +++ b/webrtc/modules/video_processing/video_processing_impl.cc
|
| @@ -51,7 +51,7 @@ void VideoProcessing::GetFrameStats(const VideoFrame& frame,
|
| int height = frame.height();
|
| stats->sub_sampling_factor = GetSubSamplingFactor(width, height);
|
|
|
| - const uint8_t* buffer = frame.buffer(kYPlane);
|
| + const uint8_t* buffer = frame.video_frame_buffer()->DataY();
|
| // Compute histogram and sum of frame
|
| for (int i = 0; i < height; i += (1 << stats->sub_sampling_factor)) {
|
| int k = i * width;
|
| @@ -98,7 +98,7 @@ void VideoProcessing::Brighten(int delta, VideoFrame* frame) {
|
| look_up[i] = ((((val < 0) ? 0 : val) > 255) ? 255 : val);
|
| }
|
|
|
| - uint8_t* temp_ptr = frame->buffer(kYPlane);
|
| + uint8_t* temp_ptr = frame->video_frame_buffer()->MutableDataY();
|
| for (int i = 0; i < num_pixels; i++) {
|
| *temp_ptr = static_cast<uint8_t>(look_up[*temp_ptr]);
|
| temp_ptr++;
|
|
|