From 4e89ac9661c42302ad1fecda05fb4e35c071689a Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 28 Jun 2013 10:35:27 -0400 Subject: [PATCH] parse and strip extmap attribute (rfc 5285) to make chrome happy --- daemon/sdp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/daemon/sdp.c b/daemon/sdp.c index 4e6f80484..664df627a 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -133,6 +133,7 @@ struct sdp_attribute { ATTR_SENDONLY, ATTR_RECVONLY, ATTR_RTCP_MUX, + ATTR_EXTMAP, } attr; union { @@ -505,6 +506,8 @@ static int parse_attribute(struct sdp_attribute *a) { case 6: if (!str_cmp(&a->name, "crypto")) ret = parse_attribute_crypto(a); + if (!str_cmp(&a->name, "extmap")) + a->attr = ATTR_EXTMAP; break; case 7: if (!str_cmp(&a->name, "ice-pwd")) @@ -1141,6 +1144,9 @@ static int process_session_attributes(struct sdp_chopper *chop, struct sdp_attri break; goto strip; + case ATTR_EXTMAP: + goto strip; + default: break; } @@ -1176,6 +1182,7 @@ static int process_media_attributes(struct sdp_chopper *chop, struct sdp_attribu case ATTR_RTCP: case ATTR_RTCP_MUX: + case ATTR_EXTMAP: goto strip; case ATTR_CRYPTO: