[FFmpeg-devel] [PATCH v2] avformat/hlsenc: Added option to add EXT-X-INDEPENDENT-SEGMENTS tag

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu Nov 23 13:25:40 EET 2017


2017-11-23 12:21 GMT+01:00 Karthick J <kjeyapal at akamai.com>:

> +    if (hls->flags & HLS_SPLIT_BY_TIME) {
> +        // Independent segments cannot be guaranteed when splitting by time
> +        hls->flags &= ~HLS_INDEPENDENT_SEGMENTS;
> +        av_log(s, AV_LOG_WARNING,
> +               "'split_by_time' and 'independent_segments' cannot be enabled together. "
> +               "Disabling 'independent_segments' flag\n");
> +    }

I did not read the code (so this comment may be wrong) but I would
have expected "if (flags & BY_TIME && flags & INDEPENDENT)".

Carl Eugen


More information about the ffmpeg-devel mailing list