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