diff options
author | Zhao Zhili <quinkblack@foxmail.com> | 2021-01-16 00:47:41 +0800 |
---|---|---|
committer | liuqi05 <liuqi05@kuaishou.com> | 2021-01-24 10:55:44 +0800 |
commit | 17756882920cbc8620251b81da433374cd685dda (patch) | |
tree | 68533ba9e3bbe8bcef8c5fdf82d69156c8e3b7be | |
parent | 47327aa2d9f4e54c50ee94f603bc50cad34c9b4d (diff) | |
download | ffmpeg-17756882920cbc8620251b81da433374cd685dda.tar.gz |
avformat/hlsenc: EXT-X-I-FRAMES-ONLY requires version 4 or higher
-rw-r--r-- | libavformat/hlsenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 7f38db7058..4b66f436dd 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -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; } |