The EXT-X-DISCONTINUITY tag was not being added to subtitle streams, causing
synchronization issues. This patch ensures that the tag is applied consistently
across video and subtitle streams.
---
libavformat/hlsenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 1e932b7..571d6b2 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) {
--
2.46.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".