[FFmpeg-devel] [PATCH] Use the actual RTSP peer IP for RTP sessions

Martin Storsjö martin
Wed Mar 10 23:58:14 CET 2010


On Wed, 10 Mar 2010, Ronald S. Bultje wrote:

> On Wed, Mar 10, 2010 at 5:47 PM, Martin Storsj? <martin at martin.st> wrote:
> > That's what both the last ugly one does (where I copy the AVFormatContext
> > just for the sake of setting a custom url) and what the initial one did
> > (where I temporarily changed AVFormatContext->filename for the original
> > RTSP muxer, then reset it to the original after creating the SDP) -
> > forcing an AVFormatContext with a custom url even if it's still the same
> > normal RTSP muxer context. Ugly, but works with the current SDP creation
> > interface.
> [.. half-init too complex ..]
> 
> Right, I see. OK, so I don't quite like copying the context just for
> this, so what was the reason that we couldn't change s->filename
> again? After all, it's an internal structure that is only accessed by
> RTP/RTSP here...

No, it's the user-supplied RTSP context, so we can't really touch it...

// Martin



More information about the ffmpeg-devel mailing list