diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 15f700acbc..cd521f8584 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -540,7 +540,7 @@ static void write_hls_media_playlist(OutputStream *os, AVFormatContext *s, } ff_hls_write_playlist_header(c->m3u8_out, 6, -1, target_duration, - start_number, PLAYLIST_TYPE_NONE, 0); + start_number, PLAYLIST_TYPE_NONE, 0, -1); ff_hls_write_init_file(c->m3u8_out, os->initfile, c->single_file, os->init_range_length, os->init_start_pos); @@ -2275,7 +2275,7 @@ static int dash_write_packet(AVFormatContext *s, AVPacket *pkt) if (c->lhls) { char *prefetch_url = use_rename ? NULL : os->filename; - write_hls_media_playlist(os, s, pkt->stream_index, 0, prefetch_url); + write_hls_media_playlist(os, s, pkt->stream_index, 0, prefetch_url,-1); } }