[FFmpeg-cvslog] avformat/hlsenc: Fix missing EXT-X-DISCONTINUITY tag in subtitle streams
Jonathan Baecker
git at videolan.org
Mon Sep 30 14:22:43 EEST 2024
ffmpeg | branch: master | Jonathan Baecker <jonbae77 at gmail.com> | Thu Sep 26 09:33:54 2024 +0200| [f3d2624bfab0f3a4cc68160b5b5869c3ea2af779] | committer: Steven Liu
avformat/hlsenc: Fix missing EXT-X-DISCONTINUITY tag in subtitle streams
The EXT-X-DISCONTINUITY tag was not being added to subtitle streams,
causing synchronization issues.i
This patch ensures that the tag is applied consistently across video and subtitle streams.
Reviewed-by: Steven Liu <lq at chinaffmpeg.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f3d2624bfab0f3a4cc68160b5b5869c3ea2af779
---
libavformat/hlsenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 1e932b7b0e..571d6b2752 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -1668,7 +1668,7 @@ static int hls_window(AVFormatContext *s, int last, VariantStream *vs)
ff_hls_write_playlist_header(hls->sub_m3u8_out, hls->version, hls->allowcache,
target_duration, sequence, PLAYLIST_TYPE_NONE, 0);
for (en = vs->segments; en; en = en->next) {
- ret = ff_hls_write_file_entry(hls->sub_m3u8_out, 0, byterange_mode,
+ ret = ff_hls_write_file_entry(hls->sub_m3u8_out, en->discont, byterange_mode,
en->duration, 0, en->size, en->pos,
hls->baseurl, en->sub_filename, NULL, 0, 0, 0);
if (ret < 0) {
More information about the ffmpeg-cvslog
mailing list