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

Ronald S. Bultje rsbultje
Wed Mar 10 23:52:42 CET 2010


Hi,

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...

I'm just trying to see which solution I would prefer, I can see why
Luca doesn't want the filename argument in sdp_create().

> The attached patch series is one example on how this could be done. This
> also solves the control name parameter problem as a bonus.

Missing. ;-).

Ronald



More information about the ffmpeg-devel mailing list