patch: set RTCP port only if RTP port is also set
This commit is contained in:
parent
cbbb18fe5f
commit
68f35e1fb2
1 changed files with 3 additions and 1 deletions
|
@ -347,8 +347,10 @@ void sdp_media_raddr_rtcp(const struct sdp_media *m, struct sa *raddr)
|
|||
sa_set_port(raddr, sa_port(&m->raddr_rtcp));
|
||||
}
|
||||
else {
|
||||
uint16_t port = sa_port(&m->raddr);
|
||||
|
||||
*raddr = m->raddr;
|
||||
sa_set_port(raddr, sa_port(&m->raddr) + 1);
|
||||
sa_set_port(raddr, port ? port + 1 : 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue