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.
Unified · Split
| @@ -1706,7 +1706,7 @@ static int hls_window(AVFormatContext *s, int last, VariantStream *vs) · 1705 unmodified lines | |||
| 1706 | } | 1706 | } |
| 1707 | } | 1707 | } |
| 1708 | 1708 | ||
| 1709 | if (last) | 1709 | if (last && !(hls->flags & HLS_OMIT_ENDLIST)) |
| 1710 | ff_hls_write_end_list(hls->sub_m3u8_out); | 1710 | ff_hls_write_end_list(hls->sub_m3u8_out); |
| 1711 | 1711 | ||
| 1712 | } | 1712 | } |