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

Fix odd RTP port handling

parent c412d82b
...@@ -137,7 +137,15 @@ bool Message::AddProgram(Program *p) ...@@ -137,7 +137,15 @@ bool Message::AddProgram(Program *p)
+ (p->IsRTP() ? "RTP/AVP 33" : "udp mpeg") +"\r\n"; + (p->IsRTP() ? "RTP/AVP 33" : "udp mpeg") +"\r\n";
if (p->IsRTP()) if (p->IsRTP())
{
m += "a=rtpmap:33 MP2T/90000\r\n"; m += "a=rtpmap:33 MP2T/90000\r\n";
if (p->IsRTP() & 1)
{
snprintf(portbuf, sizeof(portbuf), "%u", 1 + p->GetPort());
port = portbuf;
m += "a=rtcp:" + port + "\r\n";
}
}
sdp += m; sdp += m;
......
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