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 1ebc441bb2d1841653e5f48cddc08bbe16b06e27..72117f5be6a5c7d2fe2a1fafb6f790eaf0f4ed14 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); |