Browse Source

Fix receiving from SDP with unicast destinations

Originally committed as revision 12831 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Luca Abeni 17 years ago
parent
commit
d2bf42bef9
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/rtsp.c

+ 2
- 1
libavformat/rtsp.c View File

@@ -1413,9 +1413,10 @@ static int sdp_read_header(AVFormatContext *s,
for(i=0;i<rt->nb_rtsp_streams;i++) { for(i=0;i<rt->nb_rtsp_streams;i++) {
rtsp_st = rt->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), inet_ntoa(rtsp_st->sdp_ip),
rtsp_st->sdp_port, rtsp_st->sdp_port,
rtsp_st->sdp_port,
rtsp_st->sdp_ttl); rtsp_st->sdp_ttl);
if (url_open(&rtsp_st->rtp_handle, url, URL_RDWR) < 0) { if (url_open(&rtsp_st->rtp_handle, url, URL_RDWR) < 0) {
err = AVERROR_INVALIDDATA; err = AVERROR_INVALIDDATA;


Loading…
Cancel
Save