Commit 2333c427 authored by lucabe's avatar lucabe

Fix receiving from SDP with unicast destinations


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12831 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 45c122f4
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment