on n (allow to receive 2 rtsp streams simultaneously with libavformat)
Originally committed as revision 10876 to svn://svn.ffmpeg.org/ffmpeg/trunk
if (RTSP_RTP_PORT_MIN != 0) {
while(j <= RTSP_RTP_PORT_MAX) {
snprintf(buf, sizeof(buf), "rtp://?localport=%d", j);
+ j += 2; /* we will use two port by rtp stream (rtp and rtcp) */
if (url_open(&rtsp_st->rtp_handle, buf, URL_RDWR) == 0) {
- j += 2; /* we will use two port by rtp stream (rtp and rtcp) */
goto rtp_opened;
}
}