Commit b5f4e7d2 authored by lu_zero's avatar lu_zero

Make ffserver support rfc3550

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22907 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a375f8d2
...@@ -3042,7 +3042,7 @@ static void rtsp_cmd_setup(HTTPContext *c, const char *url, ...@@ -3042,7 +3042,7 @@ static void rtsp_cmd_setup(HTTPContext *c, const char *url,
RTSPMessageHeader *h) RTSPMessageHeader *h)
{ {
FFStream *stream; FFStream *stream;
int stream_index, port; int stream_index, rtp_port, rtcp_port;
char buf[1024]; char buf[1024];
char path1[1024]; char path1[1024];
const char *path; const char *path;
...@@ -3156,11 +3156,12 @@ static void rtsp_cmd_setup(HTTPContext *c, const char *url, ...@@ -3156,11 +3156,12 @@ static void rtsp_cmd_setup(HTTPContext *c, const char *url,
switch(rtp_c->rtp_protocol) { switch(rtp_c->rtp_protocol) {
case RTSP_LOWER_TRANSPORT_UDP: case RTSP_LOWER_TRANSPORT_UDP:
port = rtp_get_local_port(rtp_c->rtp_handles[stream_index]); rtp_port = rtp_get_local_rtp_port(rtp_c->rtp_handles[stream_index]);
rtcp_port = rtp_get_local_rtcp_port(rtp_c->rtp_handles[stream_index]);
url_fprintf(c->pb, "Transport: RTP/AVP/UDP;unicast;" url_fprintf(c->pb, "Transport: RTP/AVP/UDP;unicast;"
"client_port=%d-%d;server_port=%d-%d", "client_port=%d-%d;server_port=%d-%d",
th->client_port_min, th->client_port_min + 1, th->client_port_min, th->client_port_max,
port, port + 1); rtp_port, rtcp_port);
break; break;
case RTSP_LOWER_TRANSPORT_TCP: case RTSP_LOWER_TRANSPORT_TCP:
url_fprintf(c->pb, "Transport: RTP/AVP/TCP;interleaved=%d-%d", url_fprintf(c->pb, "Transport: RTP/AVP/TCP;interleaved=%d-%d",
......
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