[FFmpeg-devel] [PATCH] Del has_video for HLS_INDEPENDENT_SEGMENTS, it can be used with audio

Xavier Laffargue laffargue.xavier at gmail.com
Sat Dec 3 20:38:22 EET 2022


Signed-off-by: Xavier Laffargue <laffargue.xavier at gmail.com>
---
libavformat/hlsenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index a86fc8907f..92276084aa 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -1598,7 +1598,7 @@ static int hls_window(AVFormatContext *s, int last, VariantStream *vs)
        avio_printf(byterange_mode ? hls->m3u8_out : vs->out, "#EXT-X-DISCONTINUITY\n");
        vs->discontinuity_set = 1;
    }
-    if (vs->has_video && (hls->flags & HLS_INDEPENDENT_SEGMENTS)) {
+    if (hls->flags & HLS_INDEPENDENT_SEGMENTS) {
        avio_printf(byterange_mode ? hls->m3u8_out : vs->out, "#EXT-X-INDEPENDENT-SEGMENTS\n");
    }
    for (en = vs->segments; en; en = en->next) {
-- 
2.31.1



More information about the ffmpeg-devel mailing list