Browse Source

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

tags/n4.4
Zhao Zhili liuqi05 5 years ago
parent
commit
1775688292
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavformat/hlsenc.c

+ 4
- 0
libavformat/hlsenc.c 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;
}


Loading…
Cancel
Save