avformat/hlsenc: Fix filename and options

Regression since bc9a5965c8

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-02-10 19:02:48 +01:00
parent 5669aa2a8a
commit a73b23e3df

View File

@ -542,7 +542,7 @@ static int hls_start(AVFormatContext *s)
err = AVERROR(ENOMEM);
goto fail;
}
err = s->io_open(s, &oc->pb, oc->filename, AVIO_FLAG_WRITE, NULL);
err = s->io_open(s, &oc->pb, filename, AVIO_FLAG_WRITE, &options);
av_free(filename);
av_dict_free(&options);
if (err < 0)