Index: webrtc/api/java/jni/androidmediaencoder_jni.cc |
diff --git a/webrtc/api/java/jni/androidmediaencoder_jni.cc b/webrtc/api/java/jni/androidmediaencoder_jni.cc |
index 8c990deb5a950b3aef51db0d96d3d30e91e8c855..5a817b6e8446ed3bca12bce62ab0dc6b5be326b2 100644 |
--- a/webrtc/api/java/jni/androidmediaencoder_jni.cc |
+++ b/webrtc/api/java/jni/androidmediaencoder_jni.cc |
@@ -795,12 +795,9 @@ |
CHECK_EXCEPTION(jni); |
RTC_CHECK(yuv_buffer) << "Indirect buffer??"; |
RTC_CHECK(!libyuv::ConvertFromI420( |
- frame.video_frame_buffer()->DataY(), |
- frame.video_frame_buffer()->StrideY(), |
- frame.video_frame_buffer()->DataU(), |
- frame.video_frame_buffer()->StrideU(), |
- frame.video_frame_buffer()->DataV(), |
- frame.video_frame_buffer()->StrideV(), |
+ frame.buffer(webrtc::kYPlane), frame.stride(webrtc::kYPlane), |
+ frame.buffer(webrtc::kUPlane), frame.stride(webrtc::kUPlane), |
+ frame.buffer(webrtc::kVPlane), frame.stride(webrtc::kVPlane), |
yuv_buffer, width_, width_, height_, encoder_fourcc_)) |
<< "ConvertFromI420 failed"; |