[FFmpeg-devel] [PATCH] avformat/hlsenc: Only prevent init_time from being used when splitting by time
Dave Johansen
davejohansen at gmail.com
Tue Nov 7 03:03:45 EET 2023
---
libavformat/hlsenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 4ef84c05c1..3548299770 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -3090,7 +3090,7 @@ static int hls_init(AVFormatContext *s)
if (hls->flags & HLS_APPEND_LIST) {
parse_playlist(s, vs->m3u8_name, vs);
vs->discontinuity = 1;
- if (hls->init_time > 0) {
+ if ((hls->flags & HLS_SPLIT_BY_TIME) && (hls->init_time > 0)) {
av_log(s, AV_LOG_WARNING, "append_list mode does not support hls_init_time,"
" hls_init_time value will have no effect\n");
hls->init_time = 0;
--
2.39.2 (Apple Git-143)
More information about the ffmpeg-devel
mailing list