[FFmpeg-cvslog] rtsp: Send mode=record instead of mode=receive

Martin Storsjö git at videolan.org
Tue Jun 19 21:13:50 CEST 2012


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Mon Jun 18 16:19:33 2012 +0300| [bbc8038614df85b608a11baaa2770f0d342d26fc] | committer: Martin Storsjö

rtsp: Send mode=record instead of mode=receive

This seems to be the correct mode to send, according to the
original RTSP RFC, and matches the method RECORD which is
sent later when starting to send data.

Darwin Streaming Server works fine with either of them.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bbc8038614df85b608a11baaa2770f0d342d26fc
---

 libavformat/rtsp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 19fdaf1..a70ea04 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1284,7 +1284,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
                      "%s/UDP;multicast", trans_pref);
         }
         if (s->oformat) {
-            av_strlcat(transport, ";mode=receive", sizeof(transport));
+            av_strlcat(transport, ";mode=record", sizeof(transport));
         } else if (rt->server_type == RTSP_SERVER_REAL ||
                    rt->server_type == RTSP_SERVER_WMS)
             av_strlcat(transport, ";mode=play", sizeof(transport));



More information about the ffmpeg-cvslog mailing list