[FFmpeg-cvslog] r21912 - trunk/libavformat/rtsp.c

rbultje subversion
Sat Feb 20 00:12:00 CET 2010


Author: rbultje
Date: Sat Feb 20 00:11:59 2010
New Revision: 21912

Log:
Use mode=receive instead of mode=play if in RTSP muxer (instead of demuxer)
mode.

Patch by Martin Storsj? <$firstname $firstname st>.

Modified:
   trunk/libavformat/rtsp.c

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	Sat Feb 20 00:10:19 2010	(r21911)
+++ trunk/libavformat/rtsp.c	Sat Feb 20 00:11:59 2010	(r21912)
@@ -1109,7 +1109,9 @@ static int make_setup_request(AVFormatCo
             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),



More information about the ffmpeg-cvslog mailing list