Skip to content

Commit

Permalink
fix PCMA/PCMU RTP forwarding in audiobridge - incorrect RTP header of…
Browse files Browse the repository at this point in the history
…fset (#2875)
  • Loading branch information
AlexYaremchuk committed Feb 8, 2022
1 parent 2068e88 commit eb2c455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/janus_audiobridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -8305,7 +8305,7 @@ static void *janus_audiobridge_mixer_thread(void *data) {
}
}
rtph = (janus_rtp_header *)(forwarder->codec == JANUS_AUDIOCODEC_PCMA ?
(rtpalaw + forwarder->group*G711_SAMPLES + 12) : (rtpulaw + forwarder->group*G711_SAMPLES + 12));
(rtpalaw + forwarder->group*G711_SAMPLES) : (rtpulaw + forwarder->group*G711_SAMPLES));
rtph->version = 2;
length = 160;
}
Expand Down

0 comments on commit eb2c455

Please sign in to comment.