]> git.sesse.net Git - ffmpeg/commit
avformat/hlsenc: compute segment duration use current pts minus last segment end pts
authorSteven Liu <lq@chinaffmpeg.org>
Wed, 29 Apr 2020 12:39:22 +0000 (20:39 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Wed, 6 May 2020 03:32:26 +0000 (11:32 +0800)
commita7bab199e50619df0a6d31a247f7186868e6e4e0
tree4b46db630edf90ed70ede60b99e1e2d3d236c8ab
parent03b1b96832d53fc9f9581f06157d6c97ad692d38
avformat/hlsenc: compute segment duration use current pts minus last segment end pts

segment duration is using vs duration which compute by frame per second,
that can not fix problem of VFR video stream, so compute the duration
when split the segment, set the segment target duration use
current packet pts minus the prev segment end pts..

Reported-by: Zhao Jun <barryjzhao@tencent.com>
Reviewed-by: Zhao Jun <barryjzhao@tencent.com>
Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
libavformat/hlsenc.c