Message ID | 20231107010346.16367-1-davejohansen@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] avformat/hlsenc: Only prevent init_time from being used when splitting by time | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
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;