# HG changeset patch # User lucabe # Date 1208258884 0 # Node ID 47e0fbaba3769bdee1c34022ce5c55a956d73c4e # Parent e17b25e8a34e48f591e1be46aacb71e0b2167426 Fix receiving from SDP with unicast destinations diff -r e17b25e8a34e -r 47e0fbaba376 rtsp.c --- a/rtsp.c Tue Apr 15 11:23:07 2008 +0000 +++ b/rtsp.c Tue Apr 15 11:28:04 2008 +0000 @@ -1413,9 +1413,10 @@ 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;