Commit 4eef36a4 authored by Derek Buitenhuis's avatar Derek Buitenhuis

Merge commit 'd44f3e40'

* commit 'd44f3e40':
  avio: Apply avoptions on the URLContext itself as well
Merged-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parents 94e5f092 d44f3e40
...@@ -311,6 +311,9 @@ int ffurl_open_whitelist(URLContext **puc, const char *filename, int flags, ...@@ -311,6 +311,9 @@ int ffurl_open_whitelist(URLContext **puc, const char *filename, int flags,
int ret = ffurl_alloc(puc, filename, flags, int_cb); int ret = ffurl_alloc(puc, filename, flags, int_cb);
if (ret < 0) if (ret < 0)
return ret; return ret;
if (options &&
(ret = av_opt_set_dict(*puc, options)) < 0)
goto fail;
if (options && (*puc)->prot->priv_data_class && if (options && (*puc)->prot->priv_data_class &&
(ret = av_opt_set_dict((*puc)->priv_data, options)) < 0) (ret = av_opt_set_dict((*puc)->priv_data, options)) < 0)
goto fail; goto fail;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment