[FFmpeg-devel] [PATCH] Make RTP work with IPv6 enabled

Ronald S. Bultje rsbultje
Sat Oct 13 20:13:55 CEST 2007

Hi Nicolas,

On 10/12/07, Nicolas George <nicolas.george at normalesup.org> wrote:
> The (one?) problem with the current behavior is RTP: RTP needs two
> consecutive ports. The current implementation gets a first socket with an
> ephemeral port, then requests the next port. If the ephemeral port is not
> bound, it fails (trying to bind port 1).

I don't think the bind() should be needed per se, though, I mean, recv()
should be good enough since it is udp anyway. Is there a way to assign that
port by setting a reasonable default or derive the local private port
without doing the bind()?

(The ipv6/4 code should be made more alike or merged like in my patch,
though, so as for that part, this patch is doing the right thing.)


More information about the ffmpeg-devel mailing list