We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 329f545 commit 0c9cc42Copy full SHA for 0c9cc42
sdk/objc/components/renderer/metal/RTCMTLI420Renderer.mm
@@ -116,6 +116,13 @@ - (BOOL)setupTexturesForFrame:(nonnull RTC_OBJC_TYPE(RTCVideoFrame) *)frame {
116
return NO;
117
}
118
119
+ // Chroma size must be >= 1 as per the Apple documentation, so skip ?x1
120
+ // and 1x? frames.
121
+ // See: https://bugs.chromium.org/p/webrtc/issues/detail?id=14892
122
+ if (frame.width < 2 || frame.height < 2) {
123
+ return NO;
124
+ }
125
+
126
id<RTC_OBJC_TYPE(RTCI420Buffer)> buffer = [frame.buffer toI420];
127
128
// Luma (y) texture.
0 commit comments