Skip to content

Commit

Permalink
audiobridge: temporarily disable inbound FEC due to potential deadlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
atoppi committed May 9, 2024
1 parent cefca79 commit 9be6a74
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/plugins/janus_audiobridge.c
Expand Up @@ -8805,12 +8805,13 @@ static void *janus_audiobridge_participant_thread(void *data) {
rtp = (janus_rtp_header *)buffer;
/* If this is Opus, check if there's a packet gap we should fix with FEC */
use_fec = FALSE;
if(!first && participant->codec == JANUS_AUDIOCODEC_OPUS && participant->fec) {
if(ntohs(rtp->seq_number) == (participant->expected_seq + 1)) {
/* Lost a packet here? Use FEC to recover */
use_fec = TRUE;
}
}
/* FIXME Temporarily disable inbound FEC due to potential deadlocks */
//if(!first && participant->codec == JANUS_AUDIOCODEC_OPUS && participant->fec) {
// if(ntohs(rtp->seq_number) == (participant->expected_seq + 1)) {
// /* Lost a packet here? Use FEC to recover */
// use_fec = TRUE;
// }
//}
first = FALSE;
if(use_fec) {
/* There was a gap, try to get decode from redundant info first */
Expand Down

0 comments on commit 9be6a74

Please sign in to comment.