Skip to content

Commit e958e66

Browse files
committed
fix issue for screen sharing.
1 parent 703ae40 commit e958e66

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
@@ -37,7 +37,7 @@ - (void)capturer:(RTC_OBJC_TYPE(RTCVideoCapturer) *)capturer
3737
ObjCVideoTrackSource::ObjCVideoTrackSource() : ObjCVideoTrackSource(false) {}
3838

3939
ObjCVideoTrackSource::ObjCVideoTrackSource(bool is_screencast)
40-
: AdaptedVideoTrackSource(/* required resolution alignment */ 2),
40+
: AdaptedVideoTrackSource(/* required resolution alignment */ is_screencast? 16 : 2),
4141
is_screencast_(is_screencast) {}
4242

4343
ObjCVideoTrackSource::ObjCVideoTrackSource(RTCObjCVideoSourceAdapter *adapter) : adapter_(adapter) {

0 commit comments

Comments
 (0)