Skip to content

Commit

Permalink
6.0.186
Browse files Browse the repository at this point in the history
  • Loading branch information
yangrtc committed Mar 27, 2023
1 parent a45fb06 commit e722fcb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion include/yangutil/yangerrorcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

#define ERROR_JSON 320

#define ERROR_SSL 300
#define ERROR_SSL 330



Expand Down
3 changes: 0 additions & 3 deletions libmetartccore6/src/yangrtc/YangPushH264.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ int32_t yang_push_h264_package_fu_a(YangRtcSession *session, YangPushH264Rtp *rt
uint8_t header = pdata[0];
uint8_t nal_type = header & kNalTypeMask;


int32_t num_of_packet = ((plen - 1) % fu_payload_size==0)?0:1 + (plen - 1) / fu_payload_size;
for (int32_t i = 0; i < num_of_packet; ++i) {
int32_t packet_size = yang_min(nb_left, fu_payload_size);
Expand Down Expand Up @@ -193,8 +192,6 @@ int32_t yang_push_h264_package_fu_a(YangRtcSession *session, YangPushH264Rtp *rt
return err;
}



int32_t yang_push_h264_video(void *psession, YangPushH264Rtp *rtp,
YangFrame *videoFrame) {
int32_t err = Yang_Ok;
Expand Down
2 changes: 0 additions & 2 deletions libmetartccore6/src/yangzlm/YangZlmConnection.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,13 @@ int32_t yang_zlm_doHandleSignal(YangRtcSession* session,ZlmSdpResponseType* zlm,
}

int32_t yang_zlm_connectRtcServer(YangRtcConnection* conn){

int err=Yang_Ok;
ZlmSdpResponseType zlm;
YangRtcSession* session=conn->session;
yang_memset(&zlm,0,sizeof(ZlmSdpResponseType));
char *tsdp=NULL;
conn->createOffer(session, &tsdp);
if ((err=yang_zlm_doHandleSignal(session,&zlm,tsdp,session->context.streamConfig->localPort,session->context.streamConfig->streamOptType)) == Yang_Ok) {

conn->setRemoteDescription(conn->session,zlm.sdp);
}
yang_free(tsdp);
Expand Down

0 comments on commit e722fcb

Please sign in to comment.