[FFmpeg-devel] [PATCH v3] avformat/hlsenc: Respect `omit_endlist` flag in subtitle playlists

Steven Liu lingjiujianke at gmail.com
Fri Oct 4 13:06:44 EEST 2024


Jonathan Baecker <jonbae77 at gmail.com> 于2024年10月1日周二 07:56写道:
>
> This modification applies Steven's suggestion.
>
> Original description was:
> 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.
> ---
>  libavformat/hlsenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
> index 571d6b2752..c258fc812d 100644
> --- a/libavformat/hlsenc.c
> +++ b/libavformat/hlsenc.c
> @@ -1676,7 +1676,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);
>
>      }
> --
> 2.46.2
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


lgtm

Thanks
Steven


More information about the ffmpeg-devel mailing list