Commit b85e1d74 authored by rbultje's avatar rbultje

Send improper UDP SETUP request, which is what Realmedia servers expect.

See discussion on ML in "Realmedia patch" thread.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15482 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 68255d9a
...@@ -947,8 +947,11 @@ make_setup_request (AVFormatContext *s, const char *host, int port, ...@@ -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);
} }
......
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