[FFmpeg-devel] [PATCH] url_split() ipv6 support

Gary Corcoran gcorcoran
Thu Sep 27 21:31:01 CEST 2007


Andreas ?man wrote:
> Hi,
> 
> Gary Corcoran wrote:
> 
>> I would suggest that if your parsing does not find an explicit port
>> number, that _your_ code set the port to the implied '80'.
> 
> The default port would have to be an argument to url_split(),
> because not all protocols use port 80. But perhaps that
> is obvious...

Well yes, I meant if the parsing finds http:, set the default to 80.
For other protocols, set it to their default.  But the user (caller)
shouldn't have to pre-parse and set up a default every time.  The
parsing code should contain the defaults and use the proper one
if there is no explicit port requested...

Gary




More information about the ffmpeg-devel mailing list