avformat/hlsenc: Fix passing options, regression since bc9a5965c815cf7fd998d8ce14a18b...
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 10 Mar 2016 23:29:59 +0000 (00:29 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 10 Mar 2016 23:45:28 +0000 (00:45 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/hlsenc.c

index 8c61b6d..e0463b4 100644 (file)
@@ -416,7 +416,7 @@ static int hls_window(AVFormatContext *s, int last)
 
     set_http_options(&options, hls);
     snprintf(temp_filename, sizeof(temp_filename), use_rename ? "%s.tmp" : "%s", s->filename);
-    if ((ret = s->io_open(s, &out, temp_filename, AVIO_FLAG_WRITE, NULL)) < 0)
+    if ((ret = s->io_open(s, &out, temp_filename, AVIO_FLAG_WRITE, &options)) < 0)
         goto fail;
 
     for (en = hls->segments; en; en = en->next) {