Skip to content

Commit

Permalink
Set decoding flag to 0 when receiving G.711 packets with unexpected l…
Browse files Browse the repository at this point in the history
…ength
  • Loading branch information
atoppi committed Sep 21, 2022
1 parent 74420ca commit cc40816
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/janus_audiobridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -5761,6 +5761,7 @@ void janus_audiobridge_incoming_rtp(janus_plugin_session *handle, janus_plugin_r
} else if(participant->codec == JANUS_AUDIOCODEC_PCMA || participant->codec == JANUS_AUDIOCODEC_PCMU) {
/* G.711 */
if(plen != 160) {
g_atomic_int_set(&participant->decoding, 0);
JANUS_LOG(LOG_WARN, "[G.711] Wrong packet size (expected 160, got %d), skipping audio packet\n", plen);
g_free(pkt->data);
g_free(pkt);
Expand Down

0 comments on commit cc40816

Please sign in to comment.