return AVERROR_PROTOCOL_NOT_FOUND;
}
-int ffurl_open(URLContext **puc, const char *filename, int flags,
- const AVIOInterruptCB *int_cb, AVDictionary **options,
- const URLProtocol **protocols)
+int ffurl_open_whitelist(URLContext **puc, const char *filename, int flags,
+ const AVIOInterruptCB *int_cb, AVDictionary **options,
+ const char *whitelist, const char* blacklist)
{
- int ret = ffurl_alloc(puc, filename, flags, int_cb, protocols);
- if (ret)
+ AVDictionary *tmp_opts = NULL;
+ AVDictionaryEntry *e;
+ int ret = ffurl_alloc(puc, filename, flags, int_cb);
+ if (ret < 0)
return ret;
+ if (options &&
+ (ret = av_opt_set_dict(*puc, options)) < 0)
+ goto fail;
if (options && (*puc)->prot->priv_data_class &&
(ret = av_opt_set_dict((*puc)->priv_data, options)) < 0)
goto fail;