mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-23 05:40:56 +00:00
avformat/hlsenc: support http method for hls fmp4
fix ticket: 7160 Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
04b6060616
commit
50df4c958b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user