| Index: webrtc/sdk/objc/Framework/Classes/Video/avfoundationvideocapturer.mm
|
| diff --git a/webrtc/sdk/objc/Framework/Classes/Video/avfoundationvideocapturer.mm b/webrtc/sdk/objc/Framework/Classes/Video/avfoundationvideocapturer.mm
|
| index 2b2ea2ac50cf4dc34beab7751eccc500b9d62a30..a060b51c1659dfbaa81f543d43bfe3140958f946 100644
|
| --- a/webrtc/sdk/objc/Framework/Classes/Video/avfoundationvideocapturer.mm
|
| +++ b/webrtc/sdk/objc/Framework/Classes/Video/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);
|
| }
|
|
|