Skip to content

Commit

Permalink
Fix status vector parsing for incoming twcc feedbacks (resolves meete…
Browse files Browse the repository at this point in the history
  • Loading branch information
atoppi committed May 31, 2021
1 parent 8a25f6e commit 9eeeb38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rtcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@ static void janus_rtcp_incoming_transport_cc(janus_rtcp_context *ctx, janus_rtcp
} else {
/* Status vector */
ss = (chunk & 0x4000) >> 14;
length = (s ? 7 : 14);
JANUS_LOG(LOG_HUGE, " [%"SCNu16"] t=status-vector, ss=%s, l=%"SCNu8"\n", num,
s ? "2-bit" : "bit", length);
length = (ss ? 7 : 14);
JANUS_LOG(LOG_HUGE, " [%"SCNu16"] t=status-vector, ss=%ss, l=%"SCNu8"\n", num,
ss ? "2-bit" : "bit", length);
while(length > 0 && psc > 0) {
if(!ss)
s = (chunk & (1 << (length-1))) ? janus_rtp_packet_status_smalldelta : janus_rtp_packet_status_notreceived;
Expand Down

0 comments on commit 9eeeb38

Please sign in to comment.