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

Ronald S. Bultje rsbultje
Wed Mar 10 23:18:32 CET 2010


Hi,

On Tue, Mar 9, 2010 at 9:47 AM, Luca Abeni <lucabe72 at email.it> wrote:
> What about this: creating the SDP from an RTSP context (as
> you are doing now), but instead of using the original AVFormatContext
> you can create a copy (and modify the filename in the copy).
> This looks like a good compromise to me,

Eehw, ugly.

> and should address the problem
> in a clean way without opening the door to SDPs that have different
> destination addresses respect to the RTP contexts (yes, I know this is
> not what you are doing here, but if we modify the avf_sdp_create()
> interface in this way we allow this kind of incorrect usage).

Hm.. In a way, that would be an application bug anyway. How about an
internal function, e.g. ff_sdp_create2(), that is called both by
avf_sdp_create() as well as RTSP?

Ronald



More information about the ffmpeg-devel mailing list