[FFmpeg-cvslog] avformat/hlsenc: EXT-X-I-FRAMES-ONLY requires version 4 or higher

Zhao Zhili git at videolan.org
Sun Jan 24 05:34:10 EET 2021


ffmpeg | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Sat Jan 16 00:47:41 2021 +0800| [17756882920cbc8620251b81da433374cd685dda] | committer: liuqi05

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=17756882920cbc8620251b81da433374cd685dda
---

 libavformat/hlsenc.c | 4 ++++
 1 file changed, 4 insertions(+)

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;
     }



More information about the ffmpeg-cvslog mailing list