From d44f3e4059506a182f59218b1e967d42b01e097c Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sat, 28 Feb 2015 01:17:09 +0200 Subject: avio: Apply avoptions on the URLContext itself as well MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently the list of avoptions for URLContext is empty though, but such options will be added. Signed-off-by: Martin Storsjö --- libavformat/avio.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/avio.c') 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; -- cgit v1.2.3