1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-06 08:08:58 +02:00

avformat/hlsenc: EXT-X-I-FRAMES-ONLY requires version 4 or higher

This commit is contained in:
Zhao Zhili 2021-01-16 00:47:41 +08:00 committed by liuqi05
parent 47327aa2d9
commit 1775688292

View File

@ -1564,6 +1564,10 @@ static int hls_window(AVFormatContext *s, int last, VariantStream *vs)
sequence = 0;
}
if (hls->flags & HLS_I_FRAMES_ONLY) {
hls->version = 4;
}
if (hls->flags & HLS_INDEPENDENT_SEGMENTS) {
hls->version = 6;
}