diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2008-09-30 13:20:23 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2008-09-30 13:20:23 +0000 |
commit | eee2cbff77d957e19c8e7d4407a27a5f42fef5f6 (patch) | |
tree | 582747d4b2e8959a25087a38dada665911479aff | |
parent | 90abbdba1e7f9df2c32bdb0a9b7c68297cd135c8 (diff) | |
download | ffmpeg-eee2cbff77d957e19c8e7d4407a27a5f42fef5f6.tar.gz |
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
-rw-r--r-- | libavformat/rtsp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index a494c74843..cfe4e644b5 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -947,8 +947,11 @@ make_setup_request (AVFormatContext *s, const char *host, int port, 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); } |