diff options
author | Luca Abeni <lucabe72@email.it> | 2008-04-15 11:28:04 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2008-04-15 11:28:04 +0000 |
commit | d2bf42bef96121cb1a45877e24a1069afee5ea3f (patch) | |
tree | 2eef3d1d3fa05d8549e3829a85a1eb14c0f454e9 /libavformat | |
parent | 35b74c3deba0091abcf673dbdcd665f6383cd78b (diff) | |
download | ffmpeg-d2bf42bef96121cb1a45877e24a1069afee5ea3f.tar.gz |
Fix receiving from SDP with unicast destinations
Originally committed as revision 12831 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtsp.c | 3 |
1 files changed, 2 insertions, 1 deletions
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;i<rt->nb_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; |