[FFmpeg-devel] [PATCH 2/3] udp: Check the port number provided by av_url_split as per docs

Derek Buitenhuis derek.buitenhuis at gmail.com
Fri Nov 24 16:10:50 EET 2017


On 11/23/2017 11:28 PM, Michael Niedermayer wrote:
> this seems to break rtp / rtsp
> 
> ive traced it to
> ff_rtsp_make_setup_request() calling ffurl_open_whitelist() without
> a port

Looking at:

    https://github.com/FFmpeg/FFmpeg/blob/1e27837265702b63db65122e97178a0ca4d25e05/libavformat/rtsp.c#L1466-L1476

It seems it's using '?localport=<port>' instead of specifying a port...

Is there a particular reason for this? It seems... odd. I don't know the RTSP
code, really.

- Derek


More information about the ffmpeg-devel mailing list