rtp: add option to ignore SSRC

This is useful when there is a fixed receiver and the sender can be
restarted.
This commit is contained in:
Wim Taymans 2023-07-06 12:55:28 +02:00
parent b95ed6dcc1
commit 126e03ec73
4 changed files with 5 additions and 3 deletions

View file

@ -293,7 +293,7 @@ static int rtp_midi_receive(struct impl *impl, uint8_t *buffer, ssize_t len)
if (impl->have_ssrc && impl->ssrc != hdr->ssrc)
goto unexpected_ssrc;
impl->ssrc = hdr->ssrc;
impl->have_ssrc = true;
impl->have_ssrc = !impl->ignore_ssrc;
seq = ntohs(hdr->sequence_number);
if (impl->have_seq && impl->seq != seq) {