diff --git a/libavformat/avio.c b/libavformat/avio.c index 246683ff58..74a5936f55 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -125,10 +125,7 @@ static int url_alloc_for_protocol(URLContext **puc, const URLProtocol *up, while(ret >= 0 && (key= strchr(p, sep)) && ppriv_data, p, key+1, 0); + ret = av_opt_set(uc->priv_data, p, key+1, 0); if (ret == AVERROR_OPTION_NOT_FOUND) av_log(uc, AV_LOG_ERROR, "Key '%s' not found.\n", p); *val= *key= sep;