[FFmpeg-cvslog] r12831 - trunk/libavformat/rtsp.c

lucabe subversion
Tue Apr 15 13:28:05 CEST 2008


Author: lucabe
Date: Tue Apr 15 13:28:04 2008
New Revision: 12831

Log:
Fix receiving from SDP with unicast destinations


Modified:
   trunk/libavformat/rtsp.c

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	(original)
+++ trunk/libavformat/rtsp.c	Tue Apr 15 13:28:04 2008
@@ -1413,9 +1413,10 @@ static int sdp_read_header(AVFormatConte
     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;




More information about the ffmpeg-cvslog mailing list