From 347f1c68f9fb8110b4654c779af00f2359e20edd Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 25 Oct 2018 08:30:56 -0400 Subject: [PATCH] suppress empty a=rtpmap lines fixes #638 Change-Id: Iab2b9c965028ca3add9e5d1d1614acc8d774ac28 --- daemon/sdp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/sdp.c b/daemon/sdp.c index d06595cc2..cd6d1bc4e 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -1466,6 +1466,8 @@ static int replace_codec_list(struct sdp_chopper *chop, static void insert_codec_parameters(struct sdp_chopper *chop, struct call_media *cm) { for (GList *l = cm->codecs_prefs_recv.head; l; l = l->next) { struct rtp_payload_type *pt = l->data; + if (!pt->encoding_with_params.len) + continue; chopper_append_printf(chop, "a=rtpmap:%u " STR_FORMAT "\r\n", pt->payload_type, STR_FMT(&pt->encoding_with_params));