mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/rtsp: Include rtcp in port range check
Currently it is only checked that the rtp port does not exceed rtp_port_max. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
This commit is contained in:
parent
d1f78067a6
commit
6df4bcf1d0
|
@ -1500,7 +1500,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
|
|||
}
|
||||
|
||||
/* first try in specified port range */
|
||||
while (j <= rt->rtp_port_max) {
|
||||
while (j + 1 <= rt->rtp_port_max) {
|
||||
AVDictionary *opts = map_to_opts(rt);
|
||||
|
||||
ff_url_join(buf, sizeof(buf), "rtp", NULL, host, -1,
|
||||
|
|
Loading…
Reference in New Issue