FS-9654 regression

This commit is contained in:
Anthony Minessale 2017-01-16 15:15:05 -06:00
parent 596bd59001
commit 52af4a3278

View File

@ -5438,7 +5438,7 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
vmatch = strcasecmp(rm_encoding, imp->iananame) ? 0 : 1;
}
if (sdp_type == SDP_TYPE_RESPONSE && vmatch && map->rm_fmtp && consider_video_fmtp) {
if (sdp_type == SDP_TYPE_RESPONSE && consider_video_fmtp && vmatch && !zstr(map->rm_fmtp) && !zstr(smh->fmtps[i])) {
vmatch = !strcasecmp(smh->fmtps[i], map->rm_fmtp);
}