Commit 21859e42 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix segfault

parent fe63f4c5
......@@ -232,10 +232,10 @@ char *sdp_AddMedia (char **sdp,
/* RTP payload type map */
if (rtpmap != NULL)
sdp_AddAttribute ("rtpmap", "%u %s", pt, rtpmap);
sdp_AddAttribute (sdp, "rtpmap", "%u %s", pt, rtpmap);
/* Format parameters */
if (fmtp != NULL)
sdp_AddAttribute ("fmtp", "%u %s", pt, fmtp);
sdp_AddAttribute (sdp, "fmtp", "%u %s", pt, fmtp);
return newsdp;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment