mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
Send improper UDP SETUP request, which is what Realmedia servers expect.
See discussion on ML in "Realmedia patch" thread. Originally committed as revision 15482 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
90abbdba1e
commit
eee2cbff77
@ -947,8 +947,11 @@ make_setup_request (AVFormatContext *s, const char *host, int port,
|
|||||||
rtp_opened:
|
rtp_opened:
|
||||||
port = rtp_get_local_port(rtsp_st->rtp_handle);
|
port = rtp_get_local_port(rtsp_st->rtp_handle);
|
||||||
snprintf(transport, sizeof(transport) - 1,
|
snprintf(transport, sizeof(transport) - 1,
|
||||||
"%s/UDP;unicast;client_port=%d",
|
"%s/UDP;", trans_pref);
|
||||||
trans_pref, port);
|
if (rt->server_type != RTSP_SERVER_REAL)
|
||||||
|
av_strlcat(transport, "unicast;", sizeof(transport));
|
||||||
|
av_strlcatf(transport, sizeof(transport),
|
||||||
|
"client_port=%d", port);
|
||||||
if (rt->server_type == RTSP_SERVER_RTP)
|
if (rt->server_type == RTSP_SERVER_RTP)
|
||||||
av_strlcatf(transport, sizeof(transport), "-%d", port + 1);
|
av_strlcatf(transport, sizeof(transport), "-%d", port + 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user