mirror of https://git.ffmpeg.org/ffmpeg.git
avio: Apply avoptions on the URLContext itself as well
Currently the list of avoptions for URLContext is empty though, but such options will be added. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
8a02a8031e
commit
d44f3e4059
|
@ -176,6 +176,9 @@ int ffurl_open(URLContext **puc, const char *filename, int flags,
|
||||||
int ret = ffurl_alloc(puc, filename, flags, int_cb, protocols);
|
int ret = ffurl_alloc(puc, filename, flags, int_cb, protocols);
|
||||||
if (ret)
|
if (ret)
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue