History

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.

Jonathan Baecker committed 2 years ago

Commit c7cf0df1 parent 425c3231 file · +1 −1Browse files

Unified · Split

libavformat/hlsenc.c+1−1
@@ -1706,7 +1706,7 @@ static int hls_window(AVFormatContext *s, int last, VariantStream *vs) · 1705 unmodified lines
17061706 }
17071707 }
17081708
1709− if (last)
1709+ if (last && !(hls->flags & HLS_OMIT_ENDLIST))
17101710 ff_hls_write_end_list(hls->sub_m3u8_out);
17111711
17121712 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t