diff options
Diffstat (limited to 'libavformat/url.h')
-rw-r--r-- | libavformat/url.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libavformat/url.h b/libavformat/url.h index 30fbf62aec..af7dc5c4b6 100644 --- a/libavformat/url.h +++ b/libavformat/url.h @@ -45,4 +45,17 @@ int ffurl_alloc(URLContext **h, const char *url, int flags); */ int ffurl_connect(URLContext *h); +/** + * Create an URLContext for accessing to the resource indicated by + * url, and open it. + * + * @param puc pointer to the location where, in case of success, the + * function puts the pointer to the created URLContext + * @param flags flags which control how the resource indicated by url + * is to be opened + * @return 0 in case of success, a negative value corresponding to an + * AVERROR code in case of failure + */ +int ffurl_open(URLContext **h, const char *url, int flags); + #endif //AVFORMAT_URL_H |