comparison rtsp.c @ 3221:e17b25e8a34e libavformat

Remove the "multicast=" tag from UDP and RTP URLs
author lucabe
date Tue, 15 Apr 2008 11:23:07 +0000
parents 98e633b72d38
children 47e0fbaba376
comparison
equal deleted inserted replaced
3220:a0ccee85d6ad 3221:e17b25e8a34e
971 { 971 {
972 char url[1024]; 972 char url[1024];
973 struct in_addr in; 973 struct in_addr in;
974 974
975 in.s_addr = htonl(reply->transports[0].destination); 975 in.s_addr = htonl(reply->transports[0].destination);
976 snprintf(url, sizeof(url), "rtp://%s:%d?multicast=1&ttl=%d", 976 snprintf(url, sizeof(url), "rtp://%s:%d?ttl=%d",
977 inet_ntoa(in), 977 inet_ntoa(in),
978 reply->transports[0].port_min, 978 reply->transports[0].port_min,
979 reply->transports[0].ttl); 979 reply->transports[0].ttl);
980 if (url_open(&rtsp_st->rtp_handle, url, URL_RDWR) < 0) { 980 if (url_open(&rtsp_st->rtp_handle, url, URL_RDWR) < 0) {
981 err = AVERROR_INVALIDDATA; 981 err = AVERROR_INVALIDDATA;
1411 1411
1412 /* open each RTP stream */ 1412 /* open each RTP stream */
1413 for(i=0;i<rt->nb_rtsp_streams;i++) { 1413 for(i=0;i<rt->nb_rtsp_streams;i++) {
1414 rtsp_st = rt->rtsp_streams[i]; 1414 rtsp_st = rt->rtsp_streams[i];
1415 1415
1416 snprintf(url, sizeof(url), "rtp://%s:%d?multicast=1&ttl=%d", 1416 snprintf(url, sizeof(url), "rtp://%s:%d?ttl=%d",
1417 inet_ntoa(rtsp_st->sdp_ip), 1417 inet_ntoa(rtsp_st->sdp_ip),
1418 rtsp_st->sdp_port, 1418 rtsp_st->sdp_port,
1419 rtsp_st->sdp_ttl); 1419 rtsp_st->sdp_ttl);
1420 if (url_open(&rtsp_st->rtp_handle, url, URL_RDWR) < 0) { 1420 if (url_open(&rtsp_st->rtp_handle, url, URL_RDWR) < 0) {
1421 err = AVERROR_INVALIDDATA; 1421 err = AVERROR_INVALIDDATA;