diff options
author | Martin Storsjö <martin@martin.st> | 2010-02-19 23:11:59 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2010-02-19 23:11:59 +0000 |
commit | 69adcc4ffb748d732acc8462890e50969d7e770c (patch) | |
tree | f784b1bb7b9f4b34fcd62ba1bf522b13193778ba /libavformat/rtsp.c | |
parent | 52aa4338ccae6ef699bfe886c08b66074f1aa146 (diff) | |
download | ffmpeg-69adcc4ffb748d732acc8462890e50969d7e770c.tar.gz |
Use mode=receive instead of mode=play if in RTSP muxer (instead of demuxer)
mode.
Patch by Martin Storsjö <$firstname $firstname st>.
Originally committed as revision 21912 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 35c965c0a1..d16a9bddb9 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1109,7 +1109,9 @@ static int make_setup_request(AVFormatContext *s, const char *host, int port, snprintf(transport, sizeof(transport) - 1, "%s/UDP;multicast", trans_pref); } - if (rt->server_type == RTSP_SERVER_REAL || + if (s->oformat) { + av_strlcat(transport, ";mode=receive", sizeof(transport)); + } else if (rt->server_type == RTSP_SERVER_REAL || rt->server_type == RTSP_SERVER_WMS) av_strlcat(transport, ";mode=play", sizeof(transport)); snprintf(cmd, sizeof(cmd), |