diff --git a/README.md b/README.md index ffdfb7306a..608e0b7803 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ gclient sync cd src git checkout -b branch_$BRANCH branch-heads/$BRANCH gclient sync -D +git apply {path-to-this-repo}/ios/patches/RTCMTLVideoView.patch cd tools_webrtc/ios python build_ios_libs.py ``` diff --git a/ios/patches/RTCMTLVideoView.patch b/ios/patches/RTCMTLVideoView.patch new file mode 100644 index 0000000000..7077676e94 --- /dev/null +++ b/ios/patches/RTCMTLVideoView.patch @@ -0,0 +1,13 @@ +diff --git a/sdk/objc/components/renderer/metal/RTCMTLVideoView.m b/sdk/objc/components/renderer/metal/RTCMTLVideoView.m +index c5d9e4385f..1865391f31 100644 +--- a/sdk/objc/components/renderer/metal/RTCMTLVideoView.m ++++ b/sdk/objc/components/renderer/metal/RTCMTLVideoView.m +@@ -139,7 +139,7 @@ + NSAssert(view == self.metalView, @"Receiving draw callbacks from foreign instance."); + RTC_OBJC_TYPE(RTCVideoFrame) *videoFrame = self.videoFrame; + // Skip rendering if we've already rendered this frame. +- if (!videoFrame || videoFrame.width <= 0 || videoFrame.height <= 0 || ++ if (!videoFrame || videoFrame.width <= 1 || videoFrame.height <= 1 || + videoFrame.timeStampNs == self.lastFrameTimeNs) { + return; + }