avformat/rtsp: Set port_off to zero for low min/max port range
authorAndriy Gelman <andriy.gelman@gmail.com>
Sun, 4 Jul 2021 15:40:25 +0000 (11:40 -0400)
committerAndriy Gelman <andriy.gelman@gmail.com>
Mon, 5 Jul 2021 17:36:22 +0000 (13:36 -0400)
commit02387de90e71a6b035e3adf2446b6002ca135511
tree7ae7248c089f5fd82bd51267f74090b4dc44b6b5
parent78f21f4ec161b9eacb75823740eabd3b87b44efe
avformat/rtsp: Set port_off to zero for low min/max port range

Fixes:
$ ffmpeg -min_port 32000 -max_port 32001 -i rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov -f null -
[1]    303871 floating point exception (core dumped)

Reviewed-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
libavformat/rtsp.c