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

Don't forget bitrate

parent 6d54aef5
......@@ -217,8 +217,9 @@ char *sdp_AddMedia (char **sdp,
outlen += snprintf (NULL, 0,
"m=%s %u %s %d\r\n"
"b=TIAS:%u\r\n"
"b=RR:0\r\n",
type, dport, protocol, pt);
type, dport, protocol, pt, bw);
newsdp = realloc (*sdp, outlen + 1);
if (newsdp == NULL)
......@@ -227,9 +228,11 @@ char *sdp_AddMedia (char **sdp,
*sdp = newsdp;
ptr = newsdp + inlen;
ptr += sprintf (ptr, "m=%s %u %s %u\r\n"
"b=RR:0\r\n",
ptr += sprintf (ptr, "m=%s %u %s %u\r\n",
type, dport, protocol, pt);
if (bw > 0)
ptr += sprintf (ptr, "b=%s:%u\r\n", bw_indep ? "TIAS" : "AS", bw);
ptr += sprintf (ptr, "b=RR:0\r\n");
/* RTP payload type map */
if (rtpmap != NULL)
......
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