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 5a817b6e8446ed3bca12bce62ab0dc6b5be326b2..8c990deb5a950b3aef51db0d96d3d30e91e8c855 100644 |
--- a/webrtc/api/java/jni/androidmediaencoder_jni.cc |
+++ b/webrtc/api/java/jni/androidmediaencoder_jni.cc |
@@ -795,9 +795,12 @@ bool MediaCodecVideoEncoder::EncodeByteBufferOnCodecThread(JNIEnv* jni, |
CHECK_EXCEPTION(jni); |
RTC_CHECK(yuv_buffer) << "Indirect buffer??"; |
RTC_CHECK(!libyuv::ConvertFromI420( |
- frame.buffer(webrtc::kYPlane), frame.stride(webrtc::kYPlane), |
- frame.buffer(webrtc::kUPlane), frame.stride(webrtc::kUPlane), |
- frame.buffer(webrtc::kVPlane), frame.stride(webrtc::kVPlane), |
+ 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(), |
yuv_buffer, width_, width_, height_, encoder_fourcc_)) |
<< "ConvertFromI420 failed"; |