Chromium Code Reviews| 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 8ff97bdf767d93c8821ef401ec33b229dfc31348..9e4ad42143cebeca9ae378e4e7be3db206a7a44f 100644 |
| --- a/content/browser/renderer_host/media/video_capture_controller.cc |
| +++ b/content/browser/renderer_host/media/video_capture_controller.cc |
| @@ -469,6 +469,10 @@ void VideoCaptureController::VideoCaptureDeviceClient::OnIncomingCapturedData( |
| NOTREACHED(); |
| } |
| + // Given length can be greater than the required buffer size when paddings are |
|
mcasas
2015/02/04 23:02:39
s/when paddings are applied or alignments are chan
|
| + // applied or alignments are changed, but it cannot be less. |
| + DCHECK_GE(static_cast<size_t>(length), frame_format.ImageAllocationSize()); |
| + |
| if (libyuv::ConvertToI420(data, |
| length, |
| yplane, |