[FFmpeg-devel] [PATCH 1/1] avformat/hlsenc: Fix target duration computation when 'round_durations' is enabled
kjeyapal at akamai.com
Fri Sep 1 14:16:06 EEST 2017
>The hls_time is set to the segments duration, not target duration, and
>the hls_time just a reference value, so the target duration is +1.
>anyway, this patch can not catch the point.
>The spec clearly says it has to be greater or equal. So rounding it up
>is perfectly legal and might even safeguard against some poor player
I think there is a misunderstanding here. Sorry if I was not clear. I mean to say, even with this patch EXT-X-TARGETDURATION will always be greater than or equal to the EXTINF duration of all the segments in the playlist. Hence it is compliant with the HLS spec.
More information about the ffmpeg-devel