Browse Source

fix handling of >1 consecutive media ports

fixes #610

Change-Id: I00124fa76461fe0b7e85717126628b068ebc006d
changes/85/23185/2
Richard Fuchs 7 years ago
parent
commit
135dfb73ae
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      daemon/sdp.c

+ 2
- 5
daemon/sdp.c View File

@ -1328,11 +1328,8 @@ int sdp_streams(const GQueue *sessions, GQueue *streams, struct sdp_ng_flags *fl
goto next;
}
if (media->port_count != 1)
goto next;
attr = attr_get_by_id(&media->attributes, ATTR_RTCP);
if (!attr) {
if (!attr || media->port_count != 1) {
SP_SET(sp, IMPLICIT_RTCP);
goto next;
}
@ -1512,7 +1509,7 @@ static int replace_consecutive_port_count(struct sdp_chopper *chop, struct sdp_m
if (!j)
goto warn;
ps_n = j->data;
if (ps_n->selected_sfd->socket.local.port != ps->selected_sfd->socket.local.port + cons * 2) {
if (ps_n->selected_sfd->socket.local.port != ps->selected_sfd->socket.local.port + cons) {
warn:
ilog(LOG_WARN, "Failed to handle consecutive ports");
break;


Loading…
Cancel
Save