Index: webrtc/sdk/objc/Framework/Classes/RTCVideoRendererAdapter.mm |
diff --git a/webrtc/sdk/objc/Framework/Classes/RTCVideoRendererAdapter.mm b/webrtc/sdk/objc/Framework/Classes/RTCVideoRendererAdapter.mm |
index 8bc01b1ce89c4f0016a4ca550c11236d9d5ffe55..1d5107b1b0e877724b6f7d3045e3a7d739c49ca3 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/RTCVideoRendererAdapter.mm |
+++ b/webrtc/sdk/objc/Framework/Classes/RTCVideoRendererAdapter.mm |
@@ -27,9 +27,10 @@ class VideoRendererAdapter |
void OnFrame(const webrtc::VideoFrame& nativeVideoFrame) override { |
RTCVideoFrame* videoFrame = [[RTCVideoFrame alloc] |
initWithVideoBuffer:nativeVideoFrame.video_frame_buffer() |
- rotation:nativeVideoFrame.rotation() |
+ rotation:static_cast<RTCVideoRotation>( |
+ nativeVideoFrame.rotation()) |
timeStampNs:nativeVideoFrame.timestamp_us() * |
- rtc::kNumNanosecsPerMicrosec]; |
+ rtc::kNumNanosecsPerMicrosec]; |
CGSize current_size = (videoFrame.rotation % 180 == 0) |
? CGSizeMake(videoFrame.width, videoFrame.height) |
: CGSizeMake(videoFrame.height, videoFrame.width); |