suppress empty a=rtpmap lines

fixes #638

Change-Id: Iab2b9c965028ca3add9e5d1d1614acc8d774ac28
pull/653/head
Richard Fuchs 7 years ago
parent 39ef7c98e6
commit 347f1c68f9

@ -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));

Loading…
Cancel
Save