Skip to content

Commit

Permalink
Align video resolution by 16 for VideoToolbox hardware H.264 encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
akihikodaki committed Dec 9, 2019
1 parent 23de412 commit c3b602c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/objc/native/src/objc_video_track_source.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c3b602c

Please sign in to comment.