Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit c3b602c

Browse files
committed
Align video resolution by 16 for VideoToolbox hardware H.264 encoder
1 parent 23de412 commit c3b602c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/objc/native/src/objc_video_track_source.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ - (void)capturer:(RTCVideoCapturer *)capturer didCaptureVideoFrame:(RTCVideoFram
3434
namespace webrtc {
3535

3636
ObjCVideoTrackSource::ObjCVideoTrackSource()
37-
: AdaptedVideoTrackSource(/* required resolution alignment */ 2) {}
37+
: AdaptedVideoTrackSource(/* required resolution alignment */ 16) {}
3838

3939
ObjCVideoTrackSource::ObjCVideoTrackSource(RTCObjCVideoSourceAdapter *adapter) : adapter_(adapter) {
4040
adapter_.objCVideoTrackSource = this;

0 commit comments

Comments
 (0)