mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 05:38:14 +00:00
fix crash when receiving SDP with many mlines
This commit is contained in:
parent
2f9d48a53f
commit
eb93c8a62f
2 changed files with 7 additions and 1 deletions
|
|
@ -315,6 +315,12 @@ int sdp_to_media_description ( belle_sdp_session_description_t *session_desc, S
|
|||
; media_desc_it!=NULL
|
||||
; media_desc_it=media_desc_it->next ) {
|
||||
int nb_ice_candidates=0;
|
||||
|
||||
if (desc->n_total_streams==SAL_MEDIA_DESCRIPTION_MAX_STREAMS){
|
||||
ms_warning("Cannot convert mline at position [%i] from SDP to SalMediaDescription",desc->n_total_streams);
|
||||
break;
|
||||
}
|
||||
|
||||
media_desc=BELLE_SDP_MEDIA_DESCRIPTION ( media_desc_it->data );
|
||||
stream=&desc->streams[desc->n_total_streams];
|
||||
media=belle_sdp_media_description_get_media ( media_desc );
|
||||
|
|
|
|||
2
oRTP
2
oRTP
|
|
@ -1 +1 @@
|
|||
Subproject commit 123ef1a55c321826966a3a375bee09b558ae170d
|
||||
Subproject commit 37b81a118760caa22a5a89d56945acea9aa52523
|
||||
Loading…
Add table
Reference in a new issue