[FFmpeg-devel] [PATCH] Use the actual RTSP peer IP for RTP sessions
Martin Storsjö
martin
Mon Mar 8 17:53:13 CET 2010
On Mon, 8 Mar 2010, Ronald S. Bultje wrote:
> On Mon, Mar 8, 2010 at 5:08 AM, Martin Storsj? <martin at martin.st> wrote:
> > The IP address is also present in the SDP, so the
> > AVFormatContext->filename field must be temporarily changed to contain an
> > URL with the numerical IP, but later changed back to the originally
> > requested url. This feels a bit messy, though.
>
> Better not change that, imo. Can you make it a local buffer? Also, we
> already have RTSPState->filename (or so) as a copy (for control:
> purposes), maybe you should use that, see the comments in the code for
> that.
No, unfortunately, I can't give the url directly to avf_sdp_create, it
only reads the AVFormatContext->filename field. Unless we improve it, of
course. :-)
Or did you mean that I should use the RTSPState->control_uri field as temp
location for the proper URL? Or even switch all usage of
AVFormatContext->filename to use RTSPState->control_uri instead, so it
wouldn't matter what we set to AVFormatContext->filename?
// Martin
More information about the ffmpeg-devel
mailing list