From 30ff7c5cbc12b692eca5c138c8a3d626c55364af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 19 Feb 2010 23:13:21 +0000 Subject: [PATCH] Only send out NAT-punching RTP/RTCP packets when we're in demuxer mode, i.e. don't send them when acting as a RTSP muxer. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Martin Storsjö <$firstname $firstname st>. Originally committed as revision 21913 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index d16a9bddb9..0bba88a8ea 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1177,7 +1177,7 @@ static int make_setup_request(AVFormatContext *s, const char *host, int port, * potential NAT router by sending dummy packets. * RTP/RTCP dummy packets are used for RDT, too. */ - if (!(rt->server_type == RTSP_SERVER_WMS && i > 1)) + if (!(rt->server_type == RTSP_SERVER_WMS && i > 1) && s->iformat) rtp_send_punch_packets(rtsp_st->rtp_handle); break; }