Index: webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm |
diff --git a/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm b/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm |
index 72117f5be6a5c7d2fe2a1fafb6f790eaf0f4ed14..1779732667746d03c41bf49b6853706876f999b7 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm |
+++ b/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm |
@@ -160,8 +160,7 @@ void AVFoundationVideoCapturer::CaptureSampleBuffer( |
// Applying rotation is only supported for legacy reasons and performance is |
// not critical here. |
if (apply_rotation() && rotation != kVideoRotation_0) { |
- buffer = I420Buffer::Rotate(*buffer->NativeToI420Buffer(), |
- rotation); |
+ buffer = I420Buffer::Rotate(*buffer->ToI420(), rotation); |
if (rotation == kVideoRotation_90 || rotation == kVideoRotation_270) { |
std::swap(captured_width, captured_height); |
} |