From c3b602c627324c36bc567dfe4a22cc3f3c5fe953 Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Mon, 9 Dec 2019 01:16:09 -0800 Subject: [PATCH] Align video resolution by 16 for VideoToolbox hardware H.264 encoder --- sdk/objc/native/src/objc_video_track_source.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/objc/native/src/objc_video_track_source.mm b/sdk/objc/native/src/objc_video_track_source.mm index 580180a1a2..64e214faa1 100644 --- a/sdk/objc/native/src/objc_video_track_source.mm +++ b/sdk/objc/native/src/objc_video_track_source.mm @@ -34,7 +34,7 @@ - (void)capturer:(RTCVideoCapturer *)capturer didCaptureVideoFrame:(RTCVideoFram namespace webrtc { ObjCVideoTrackSource::ObjCVideoTrackSource() - : AdaptedVideoTrackSource(/* required resolution alignment */ 2) {} + : AdaptedVideoTrackSource(/* required resolution alignment */ 16) {} ObjCVideoTrackSource::ObjCVideoTrackSource(RTCObjCVideoSourceAdapter *adapter) : adapter_(adapter) { adapter_.objCVideoTrackSource = this;