diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 8d4322796d..a0a2cc0bb3 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -1706,7 +1706,7 @@ static int hls_window(AVFormatContext *s, int last, VariantStream *vs) } } - if (last) + if (last && !(hls->flags & HLS_OMIT_ENDLIST)) ff_hls_write_end_list(hls->sub_m3u8_out); }