| Index: webrtc/api/java/jni/androidvideocapturer_jni.cc
|
| diff --git a/webrtc/api/java/jni/androidvideocapturer_jni.cc b/webrtc/api/java/jni/androidvideocapturer_jni.cc
|
| index 15cd2d4469dbb3387fecd62040d83f2d442704fc..4f3d64b97aa98dbbdcce92374865b0e4e0a427a5 100644
|
| --- a/webrtc/api/java/jni/androidvideocapturer_jni.cc
|
| +++ b/webrtc/api/java/jni/androidvideocapturer_jni.cc
|
| @@ -215,10 +215,10 @@
|
| libyuv::NV12ToI420Rotate(
|
| y_plane + width * crop_y + crop_x, width,
|
| uv_plane + uv_width * crop_y + crop_x, width,
|
| - buffer->MutableDataY(), buffer->StrideY(),
|
| + buffer->MutableData(webrtc::kYPlane), buffer->stride(webrtc::kYPlane),
|
| // Swap U and V, since we have NV21, not NV12.
|
| - buffer->MutableDataV(), buffer->StrideV(),
|
| - buffer->MutableDataU(), buffer->StrideU(),
|
| + buffer->MutableData(webrtc::kVPlane), buffer->stride(webrtc::kVPlane),
|
| + buffer->MutableData(webrtc::kUPlane), buffer->stride(webrtc::kUPlane),
|
| crop_width, crop_height, static_cast<libyuv::RotationMode>(
|
| capturer_->apply_rotation() ? rotation : 0));
|
|
|
|
|