| Index: media/video/capture/mac/video_capture_device_qtkit_mac.mm
|
| diff --git a/media/video/capture/mac/video_capture_device_qtkit_mac.mm b/media/video/capture/mac/video_capture_device_qtkit_mac.mm
|
| index ddc2790edde958a19450523e05966b473f597b70..0dcec7778466f56a44015479e92f9fbb912962aa 100644
|
| --- a/media/video/capture/mac/video_capture_device_qtkit_mac.mm
|
| +++ b/media/video/capture/mac/video_capture_device_qtkit_mac.mm
|
| @@ -230,6 +230,9 @@
|
| // but VideoCaptureController::OnIncomingCapturedFrame() requires
|
| // it to do so. Plumbing things through is intrusive, for now
|
| // just deliver an adjusted buffer.
|
| + // TODO(nick): This workaround could probably be eliminated by using
|
| + // VideoCaptureController::OnIncomingCapturedVideoFrame, which supports
|
| + // pitches.
|
| UInt8* addressToPass = static_cast<UInt8*>(baseAddress);
|
| size_t expectedBytesPerRow = frameWidth_ * 4;
|
| if (bytesPerRow > expectedBytesPerRow) {
|
|
|