changeset 3222:47e0fbaba376 libavformat

Fix receiving from SDP with unicast destinations
author lucabe
date Tue, 15 Apr 2008 11:28:04 +0000
parents e17b25e8a34e
children 4a2ac786dd57
files rtsp.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;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;