Mercurial > libavformat.hg
changeset 3958:ab2d2bc3a6e7 libavformat
Send improper UDP SETUP request, which is what Realmedia servers expect.
See discussion on ML in "Realmedia patch" thread.
author | rbultje |
---|---|
date | Tue, 30 Sep 2008 13:20:23 +0000 |
parents | 9f943bb755f9 |
children | ed6f6aa977ec |
files | rtsp.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rtsp.c Tue Sep 30 13:18:41 2008 +0000 +++ b/rtsp.c Tue Sep 30 13:20:23 2008 +0000 @@ -947,8 +947,11 @@ rtp_opened: port = rtp_get_local_port(rtsp_st->rtp_handle); snprintf(transport, sizeof(transport) - 1, - "%s/UDP;unicast;client_port=%d", - trans_pref, port); + "%s/UDP;", trans_pref); + 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) av_strlcatf(transport, sizeof(transport), "-%d", port + 1); }