[FFmpeg-devel] [PATCH] Fix second use of AVOptions in HLS

Duncan Salerno duncan.salerno at gmail.com
Tue Oct 9 20:08:53 CEST 2012


---
 libavformat/hls.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index 1f5309b..6675a1a 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;
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list