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

Ronald S. Bultje rsbultje
Wed Mar 10 23:48:00 CET 2010


Hi,

On Wed, Mar 10, 2010 at 5:33 PM, Luca Abeni <lucabe72 at email.it> wrote:
> On 10/03/10 23:30, Ronald S. Bultje wrote:
>>> (if
>>> we want a different destination, let's pass an AVFormatContext containig
>>> a
>>> different destination).
>>
>> Is fine with me also, I guess it'd mean some re-setup in the RTSP
>> muxer. How difficult would this be, Martin?
>
> Well, the simplest way to do it is to just copy the original context, as
> done in Martin's patch... What's the drawback with this approach?

It's not the original context. What if we want to modify the context?
Besides, we waste memory and copy time (I know, it's not critical
code, but still).

The copying of context was what I found so hideous, not your reasoning
behind it per se. :-).

Ronald



More information about the ffmpeg-devel mailing list