Revision b316aa1a

View differences:

libavformat/rtsp.c
933 933
            /* first try in specified port range */
934 934
            if (RTSP_RTP_PORT_MIN != 0) {
935 935
                while(j <= RTSP_RTP_PORT_MAX) {
936
                    snprintf(buf, sizeof(buf), "rtp://?localport=%d", j);
936
                    snprintf(buf, sizeof(buf), "rtp://%s?localport=%d", host, j);
937 937
                    j += 2; /* we will use two port by rtp stream (rtp and rtcp) */
938 938
                    if (url_open(&rtsp_st->rtp_handle, buf, URL_RDWR) == 0) {
939 939
                        goto rtp_opened;

Also available in: Unified diff