aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtmpdh.c
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2020-08-18 10:44:11 +0800
committerliuqi05 <liuqi05@kuaishou.com>2020-10-20 11:41:44 +0800
commita424671e4f1beccca5a5958add86b69eb4fe8da7 (patch)
tree68cc2eb1a10e5ab5e52f06bbb67bcf2bc64b4cb0 /libavformat/rtmpdh.c
parent21346672270ae723aa774a9c8b0749954a75b3df (diff)
downloadffmpeg-a424671e4f1beccca5a5958add86b69eb4fe8da7.tar.gz
avformat/hlsenc: process hls_time value too small sence
The target duration will be a negative value when there are some b frames after prevous frame, the pts after current packet is large than the pts of current packet, so the target duration will compute as 0.040000 - 0.080000, then the value of the target duration will be -0.040000. so hls muxer should check the pts after current packet minus the pts of current packet, hls muxer can split the stream as a segment if the target duration is neither negative nor zero, hls muxer cannot split the stream as a segment if the target duration is either negative or zero then get the next packet until the target duration is not negative or zero. Signed-off-by: Steven Liu <lq@chinaffmpeg.org> Suggested-by: Zhili Zhao <quinkblack@foxmail.com> Signed-off-by: liuqi05 <liuqi05@kuaishou.com>
Diffstat (limited to 'libavformat/rtmpdh.c')
0 files changed, 0 insertions, 0 deletions