From 6a0f3619fcb715334142290738974a035883e33f Mon Sep 17 00:00:00 2001 From: Niyati Maheshwari Date: Sun, 7 Apr 2024 14:05:35 -0700 Subject: [PATCH] cleanup --- samples/Common.c | 1 - src/source/PeerConnection/PeerConnection.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/samples/Common.c b/samples/Common.c index a8d2a1a070..295c8c0c46 100644 --- a/samples/Common.c +++ b/samples/Common.c @@ -575,7 +575,6 @@ STATUS createSampleStreamingSession(PSampleConfiguration pSampleConfiguration, P // Add a SendRecv Transceiver of type video videoTrack.kind = MEDIA_STREAM_TRACK_KIND_VIDEO; - videoTrack.codec = RTC_CODEC_H265; videoTrack.codec = RTC_CODEC_H264_PROFILE_42E01F_LEVEL_ASYMMETRY_ALLOWED_PACKETIZATION_MODE; videoRtpTransceiverInit.direction = RTC_RTP_TRANSCEIVER_DIRECTION_SENDRECV; videoRtpTransceiverInit.rollingBufferDurationSec = 3; diff --git a/src/source/PeerConnection/PeerConnection.c b/src/source/PeerConnection/PeerConnection.c index 2b56735625..07391f04e2 100644 --- a/src/source/PeerConnection/PeerConnection.c +++ b/src/source/PeerConnection/PeerConnection.c @@ -1534,8 +1534,6 @@ STATUS addTransceiver(PRtcPeerConnection pPeerConnection, PRtcMediaStreamTrack p if (direction == RTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY && pRtcMediaStreamTrack == NULL) { MEMSET(&videoTrack, 0x00, SIZEOF(RtcMediaStreamTrack)); videoTrack.kind = MEDIA_STREAM_TRACK_KIND_VIDEO; - - videoTrack.codec = RTC_CODEC_H265; videoTrack.codec = RTC_CODEC_H264_PROFILE_42E01F_LEVEL_ASYMMETRY_ALLOWED_PACKETIZATION_MODE; STRCPY(videoTrack.streamId, "myKvsVideoStream");