diff options
author | Jonathan Baecker <jonbae77@gmail.com> | 2024-09-30 19:27:49 +0200 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2024-10-13 23:01:03 +0800 |
commit | c7cf0df4948cc0df8fed1c10252ab232898bb41c (patch) | |
tree | 091d71d175f97000f02618fd3bcdd93d5645a87c | |
parent | 425c3234206c042273e001c8865391a53ce5855e (diff) | |
download | ffmpeg-c7cf0df4948cc0df8fed1c10252ab232898bb41c.tar.gz |
avformat/hlsenc: Respect `omit_endlist` flag in subtitle playlists
Ensure that when the `-hls_flags omit_endlist` option is set,
the `#EXT-X-ENDLIST` tag is also omitted from the `stream_vtt.m3u8`
subtitle playlist. This maintains consistency with the behavior
in other playlists when `omit_endlist` is specified.
Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
-rw-r--r-- | libavformat/hlsenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |