aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-02-28 01:17:09 +0200
committerMartin Storsjö <martin@martin.st>2016-03-24 10:33:37 +0200
commitd44f3e4059506a182f59218b1e967d42b01e097c (patch)
treea7daaf17fc31b0fa4a0c5c1b2f7de93cdfa79bec
parent8a02a8031ef4f98faf5647f0e01a8922247bf748 (diff)
downloadffmpeg-d44f3e4059506a182f59218b1e967d42b01e097c.tar.gz
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>
-rw-r--r--libavformat/avio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index 668e5eab87..4da6b74165 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -176,6 +176,9 @@ int ffurl_open(URLContext **puc, const char *filename, int flags,
int ret = ffurl_alloc(puc, filename, flags, int_cb, protocols);
if (ret)
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;