From d2bf42bef96121cb1a45877e24a1069afee5ea3f Mon Sep 17 00:00:00 2001 From: Luca Abeni Date: Tue, 15 Apr 2008 11:28:04 +0000 Subject: [PATCH] Fix receiving from SDP with unicast destinations Originally committed as revision 12831 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtsp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index fe41d05506..5064865f12 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1413,9 +1413,10 @@ static int sdp_read_header(AVFormatContext *s, for(i=0;inb_rtsp_streams;i++) { rtsp_st = rt->rtsp_streams[i]; - snprintf(url, sizeof(url), "rtp://%s:%d?ttl=%d", + snprintf(url, sizeof(url), "rtp://%s:%d?localport=%d&ttl=%d", inet_ntoa(rtsp_st->sdp_ip), rtsp_st->sdp_port, + rtsp_st->sdp_port, rtsp_st->sdp_ttl); if (url_open(&rtsp_st->rtp_handle, url, URL_RDWR) < 0) { err = AVERROR_INVALIDDATA;