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

Michael Niedermayer michaelni
Sun Oct 28 18:24:17 CET 2007


Hi

On Sun, Oct 28, 2007 at 12:18:54PM -0400, Ronald S. Bultje wrote:
> Hi,
> 
> On 10/28/07, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> 
> > 3 - ffmpeg-udp-connect_and_send.patch - replaces sendto() by connect() and
> > send(), which makes it work for MacOSX, where for some reason sendto() fails
> > with EINVAL (undocumented) for no obvious reason, where connect() and send()
> > with the same parameters works just fine. recvfrom() stays the way it is
> > because the man page suggests so.
> >
> 
> Attached is a better version.
[...]
> +printf("Set remote: %s\n", uri);
>  #ifdef CONFIG_IPV6
> -    return udp_ipv6_set_remote_url(h, uri);
> +    int ret = udp_ipv6_set_remote_url(h, uri);

hardly
besides that you break stdout output, the int ret will break gcc 2.95


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071028/19dec521/attachment.pgp>



More information about the ffmpeg-devel mailing list