[FFmpeg-cvslog] r15482 - trunk/libavformat/rtsp.c
rbultje
subversion
Tue Sep 30 15:20:23 CEST 2008
Author: rbultje
Date: Tue Sep 30 15:20:23 2008
New Revision: 15482
Log:
Send improper UDP SETUP request, which is what Realmedia servers expect.
See discussion on ML in "Realmedia patch" thread.
Modified:
trunk/libavformat/rtsp.c
Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c (original)
+++ trunk/libavformat/rtsp.c Tue Sep 30 15:20:23 2008
@@ -947,8 +947,11 @@ make_setup_request (AVFormatContext *s,
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);
}
More information about the ffmpeg-cvslog
mailing list