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 526cdbe4554614f1d9c4d47003b316b6a00780cb..47f6aca9b6bb8323ea5f1cab9f43c63dc471515d 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm |
+++ b/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm |
@@ -160,7 +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(), |
+ buffer = I420Buffer::Rotate(*buffer->NativeToI420Buffer(), |
rotation); |
if (rotation == kVideoRotation_90 || rotation == kVideoRotation_270) { |
std::swap(captured_width, captured_height); |