diff --git a/AUTHORS b/AUTHORS index c85a4e8764..1804f5fd31 100644 --- a/AUTHORS +++ b/AUTHORS @@ -48,6 +48,7 @@ Peng Yu Rafael Lopez Diez Ralph Giles Riku Voipio +Robert Bares Robert Nagy Ryan Yoakum Satender Saroha diff --git a/modules/video_capture/video_capture_impl.cc b/modules/video_capture/video_capture_impl.cc index 53afed00b6..235fd3438a 100644 --- a/modules/video_capture/video_capture_impl.cc +++ b/modules/video_capture/video_capture_impl.cc @@ -143,7 +143,7 @@ int32_t VideoCaptureImpl::IncomingFrame(uint8_t* videoFrame, int stride_y = width; int stride_uv = (width + 1) / 2; int target_width = width; - int target_height = height; + int target_height = abs(height); // SetApplyRotation doesn't take any lock. Make a local copy here. bool apply_rotation = apply_rotation_; @@ -163,7 +163,7 @@ int32_t VideoCaptureImpl::IncomingFrame(uint8_t* videoFrame, // TODO(nisse): Use a pool? rtc::scoped_refptr buffer = I420Buffer::Create( - target_width, abs(target_height), stride_y, stride_uv, stride_uv); + target_width, target_height, stride_y, stride_uv, stride_uv); libyuv::RotationMode rotation_mode = libyuv::kRotate0; if (apply_rotation) {