Skip to content

Commit

Permalink
5.0.103
Browse files Browse the repository at this point in the history
  • Loading branch information
yangrtc committed Nov 27, 2022
1 parent bbe6ced commit 95b6348
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions libmetartccore5/src/yangrtp/YangRtcpCommon.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ int32_t yang_decode_rtcpCommon(YangRtcpCommon* comm,YangBuffer *buffer){
"payload require payload len=%u, buffer left=%u", payload_len, yang_buffer_left(buffer));
}
comm->ssrc = yang_read_4bytes(buffer);
comm->payloadLen=payload_len-sizeof(YangRtcpHeader);
yang_read_bytes(buffer,(char*)comm->payload,comm->payloadLen);

return Yang_Ok;
}
Expand Down
6 changes: 4 additions & 2 deletions libmetartccore5/src/yangrtp/YangRtcpCompound.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ int32_t yang_decode_rtcpCompound(YangRtcpCompound* rtcps,YangBuffer *buffer){
yang_decode_rtcpNack(rtcp,buffer);

} else if (15 == header->rc) {
#if Yang_Enable_TWCC

//twcc
yang_create_rtcptwcc(rtcp);
yang_twcc_rtcp_decode(rtcp,buffer);
#endif

}
} else if(header->type == YangRtcpType_psfb) {
if(1 == header->rc) {
Expand All @@ -64,6 +64,8 @@ int32_t yang_decode_rtcpCompound(YangRtcpCompound* rtcps,YangBuffer *buffer){

} else if(2 == header->rc) {
//sli
yang_create_rtcpSli(rtcp,rtcp->ssrc);
err=yang_decode_rtcpSli(rtcp,buffer);

} else if(3 == header->rc) {
//rpsi
Expand Down

0 comments on commit 95b6348

Please sign in to comment.