mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-30 22:00:51 +08:00
avformat/hlsenc: EXT-X-I-FRAMES-ONLY requires version 4 or higher
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user