[FFmpeg-cvslog] Fix second use of AVOptions in HLS

Duncan Salerno git at videolan.org
Tue Oct 9 22:20:24 CEST 2012


ffmpeg | branch: master | Duncan Salerno <duncan.salerno at gmail.com> | Tue Oct  9 19:08:53 2012 +0100| [bd2f8e8f79e91e8dc1559078c0e1149e2e6bcc36] | committer: Michael Niedermayer

Fix second use of AVOptions in HLS

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bd2f8e8f79e91e8dc1559078c0e1149e2e6bcc36
---

 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;



More information about the ffmpeg-cvslog mailing list