summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/hls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 1f5309b642..6675a1a4a3 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -368,6 +368,9 @@ static int open_input(struct variant *var)
goto cleanup;
av_opt_set(var->input->priv_data, "key", key, 0);
av_opt_set(var->input->priv_data, "iv", iv, 0);
+ /* Need to repopulate options */
+ av_dict_free(&opts);
+ av_dict_set(&opts, "seekable", "0", 0);
if ((ret = ffurl_connect(var->input, &opts)) < 0) {
ffurl_close(var->input);
var->input = NULL;