Index: webrtc/sdk/objc/Framework/Classes/objcvideotracksource.mm |
diff --git a/webrtc/sdk/objc/Framework/Classes/objcvideotracksource.mm b/webrtc/sdk/objc/Framework/Classes/objcvideotracksource.mm |
index deece20e9b7206e39a088bc2f8f00cd8b4b4028e..fc71085ca748a6b5f5f31231b084373b448bfd70 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/objcvideotracksource.mm |
+++ b/webrtc/sdk/objc/Framework/Classes/objcvideotracksource.mm |
@@ -12,6 +12,7 @@ |
#import "RTCVideoFrame+Private.h" |
+#include "webrtc/api/video/i420_buffer.h" |
#include "webrtc/sdk/objc/Framework/Classes/corevideo_frame_buffer.h" |
namespace webrtc { |
@@ -60,7 +61,7 @@ void ObjcVideoTrackSource::OnCapturedFrame(RTCVideoFrame* frame) { |
// not critical here. |
webrtc::VideoRotation rotation = static_cast<webrtc::VideoRotation>(frame.rotation); |
if (apply_rotation() && rotation != kVideoRotation_0) { |
- buffer = I420Buffer::Rotate(buffer->NativeToI420Buffer(), rotation); |
+ buffer = I420Buffer::Rotate(*buffer->NativeToI420Buffer(), rotation); |
rotation = kVideoRotation_0; |
} |