[Ffmpeg-devel] [PATCH] inet_aton
Sun Jan 28 03:56:05 CET 2007
Michael Niedermayer wrote:
> On Wed, Jan 24, 2007 at 05:16:06PM -0200, ramiro at lisha.ufsc.br wrote:
>> The current inet_aton implementation in os_support.c returns valid even if
>> a string (the hostname) has been passed.
>> Fran?ois, does it work for you when passing a hostname instead of an IP
>> address to FFmpeg?
>> Does BeOS have the inet_addr function? If so we could use Michael Kohn's
>> implementation of inet_aton as a wrapper around inet_addr.
>> Attached patch takes inet_aton from uClibc (which is also LGPL).
> what problem does this patch solve?
> also the new code looks more complex then the old this is enough for
> rejection unless you proof that this complexity is needed to solve the
Much cleaner patch attached.
I thought this would lead to returning non-zero on some hostnames, but
according to RFC 1035, a hostname label can't start with a number, so
Fran?ois, is this ok for BeOS? (add->s_addr being returned as an int)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the ffmpeg-devel