[FFmpeg-devel] [PATCH 1/2] avformat/url.h add av_find_protocol_by_name for find URLProtocol by name
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Fri Nov 22 11:22:00 EET 2019
Steven Liu:
> diff --git a/libavformat/url.h b/libavformat/url.h
> index 4750bfff82..fe0aa10b27 100644
> --- a/libavformat/url.h
> +++ b/libavformat/url.h
> @@ -322,6 +322,15 @@ void ff_make_absolute_url(char *buf, int size, const char *base,
> */
> AVIODirEntry *ff_alloc_dir_entry(void);
>
> +/**
> + * Return the URLProtocol of the protocol that will handle the passed name.
> + *
> + * NULL is returned if no protocol could be found for the name.
> + *
> + * @return URLProtocol of the protocol or NULL.
> + */
> +const URLProtocol *av_find_protocol_by_name(const char *name);
> +
> const AVClass *ff_urlcontext_child_class_next(const AVClass *prev);
>
> /**
And url.h is not a public header and therefore the wrong place for
this; it should be avio.h (which already contains avio_enum_protocols).
- Andreas
More information about the ffmpeg-devel
mailing list