| Index: webrtc/modules/video_processing/deflickering.cc
|
| diff --git a/webrtc/modules/video_processing/deflickering.cc b/webrtc/modules/video_processing/deflickering.cc
|
| index 0e936ce9b77a5a203a1a5ae47e4c4362d1e31019..89227f783d864a9777b5f16ca91ebad692ee9f64 100644
|
| --- a/webrtc/modules/video_processing/deflickering.cc
|
| +++ b/webrtc/modules/video_processing/deflickering.cc
|
| @@ -130,8 +130,8 @@ int32_t VPMDeflickering::ProcessFrame(VideoFrame* frame,
|
| uint8_t* y_sorted = new uint8_t[y_sub_size];
|
| uint32_t sort_row_idx = 0;
|
| for (int i = 0; i < height; i += kDownsamplingFactor) {
|
| - memcpy(y_sorted + sort_row_idx * width, frame->buffer(kYPlane) + i * width,
|
| - width);
|
| + memcpy(y_sorted + sort_row_idx * width,
|
| + frame->video_frame_buffer()->DataY() + i * width, width);
|
| sort_row_idx++;
|
| }
|
|
|
| @@ -227,7 +227,7 @@ int32_t VPMDeflickering::ProcessFrame(VideoFrame* frame,
|
| }
|
|
|
| // Map to the output frame.
|
| - uint8_t* buffer = frame->buffer(kYPlane);
|
| + uint8_t* buffer = frame->video_frame_buffer()->MutableDataY();
|
| for (uint32_t i = 0; i < y_size; i++) {
|
| buffer[i] = map_uw8[buffer[i]];
|
| }
|
|
|