| Index: content/browser/renderer_host/media/video_capture_controller.cc
|
| diff --git a/content/browser/renderer_host/media/video_capture_controller.cc b/content/browser/renderer_host/media/video_capture_controller.cc
|
| index bae4d44e7d97c4770e58524218d43ad2255e68e9..98da42f867cd95af77db675853810397d42597ca 100644
|
| --- a/content/browser/renderer_host/media/video_capture_controller.cc
|
| +++ b/content/browser/renderer_host/media/video_capture_controller.cc
|
| @@ -495,6 +495,10 @@ void VideoCaptureController::VideoCaptureDeviceClient::OnIncomingCapturedData(
|
| NOTREACHED();
|
| }
|
|
|
| + // The input |length| can be greater than the required buffer size because of
|
| + // paddings and/or alignments, but it cannot be less.
|
| + DCHECK_GE(static_cast<size_t>(length), frame_format.ImageAllocationSize());
|
| +
|
| if (libyuv::ConvertToI420(data,
|
| length,
|
| yplane,
|
|
|