[FFmpeg-devel] [RFC] libavformat: URL reassembly with IPv6 addresses

Martin Storsjö martin
Sat Feb 27 11:15:36 CET 2010


On Fri, 26 Feb 2010, Ronald S. Bultje wrote:

> On Fri, Feb 26, 2010 at 5:09 PM, Martin Storsj? <martin at martin.st> wrote:
> > Ok, so based on this discussion, here's another suggestion. One function
> > that hides all the details of escaping IP addresses in URLs and assembling
> > URLs, which is quite simple and non-intrusive to use. All the code that
> > uses it is left as simple as before, or even becomes simpler.
> 
> I like. Would like comments from others (Michael, Lucas).
> 
> > +    if (authorization)
> > +        av_strlcatf(str, size, "%s:", authorization);
> 
> @, not :

Oops, fixed locally.

> > +#endif
> > +    {
> > +        /* Not an IPv6 address, just output the plain string. */
> > +        av_strlcat(str, hostname, size);
> > +    }
> 
> Superfluous {}.

Removed locally, although I prefer them for clarity when there's the /* */ 
comment above.

// Martin



More information about the ffmpeg-devel mailing list