[FFmpeg-devel] [PATCH] url_split() ipv6 support
Thu Sep 27 23:41:26 CEST 2007
> On 9/27/07, Gary Corcoran <gcorcoran at rcn.com> wrote:
>> Well yes, I meant if the parsing finds http:, set the default to 80.
> So basically parse /etc/protocols? Is that portable? (UrlProtocol is also
Well, if you meant /etc/services (that's where the info is at on FreeBSD)
it would probably work on most unix-like systems. But it might be a problem
for embedded uses. I would be tempted to just build in knowledge (e.g
to UrlProtocol) for the few well known and likely to be used protocols,
in the context of ffmpeg usage, e.g. http, rtsp, and just set the default
port to 0 for any protocol you don't recognize, with a log warning message.
More information about the ffmpeg-devel