|
@@ -933,7 +933,7 @@ static int rtsp_read_header(AVFormatContext *s, |
|
|
/* first try in specified port range */ |
|
|
/* first try in specified port range */ |
|
|
if (RTSP_RTP_PORT_MIN != 0) { |
|
|
if (RTSP_RTP_PORT_MIN != 0) { |
|
|
while(j <= RTSP_RTP_PORT_MAX) { |
|
|
while(j <= RTSP_RTP_PORT_MAX) { |
|
|
snprintf(buf, sizeof(buf), "rtp://?localport=%d", j); |
|
|
|
|
|
|
|
|
snprintf(buf, sizeof(buf), "rtp://%s?localport=%d", host, j); |
|
|
j += 2; /* we will use two port by rtp stream (rtp and rtcp) */ |
|
|
j += 2; /* we will use two port by rtp stream (rtp and rtcp) */ |
|
|
if (url_open(&rtsp_st->rtp_handle, buf, URL_RDWR) == 0) { |
|
|
if (url_open(&rtsp_st->rtp_handle, buf, URL_RDWR) == 0) { |
|
|
goto rtp_opened; |
|
|
goto rtp_opened; |
|
|