diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2018-05-24 11:55:58 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2018-05-24 11:55:58 +0800 |
commit | 50df4c958b641e3ee3114e1eb659a151d34d2ac1 (patch) | |
tree | 73ab98bc94a08166be58a47cca026367698df770 /libavformat/hlsenc.c | |
parent | 04b6060616b006ba97406fb21940a934a9b9f900 (diff) | |
download | ffmpeg-50df4c958b641e3ee3114e1eb659a151d34d2ac1.tar.gz |
avformat/hlsenc: support http method for hls fmp4
fix ticket: 7160
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r-- | libavformat/hlsenc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 9c06551ea6..2268f898b0 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -2147,6 +2147,7 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt) int range_length = 0; uint8_t *buffer = NULL; VariantStream *vs = NULL; + AVDictionary *options = NULL; for (i = 0; i < hls->nb_varstreams; i++) { vs = &hls->var_streams[i]; @@ -2272,7 +2273,8 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt) } vs->size = range_length; } else { - ret = hlsenc_io_open(s, &vs->out, vs->avf->url, NULL); + set_http_options(s, &options, hls); + ret = hlsenc_io_open(s, &vs->out, vs->avf->url, &options); if (ret < 0) { av_log(s, AV_LOG_ERROR, "Failed to open file '%s'\n", vs->avf->url); |