mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-31 11:53:24 +00:00
increment initial_prog_date_time when removing old segments
Fixes https://trac.ffmpeg.org/ticket/5940#ticket Reviewed-by: Michael Niedermayer <<michael@niedermayer.cc>> Signed-off-by: Robert Nagy <ronag89@gmail.com> Signed-off-by: Steven Liu <lingjiujianke@gmail.com>
This commit is contained in:
parent
04bd1b38ee
commit
c0dc9df2cc
@ -183,6 +183,7 @@ static int hls_delete_old_segments(HLSContext *hls) {
|
||||
segment = hls->old_segments;
|
||||
while (segment) {
|
||||
playlist_duration -= segment->duration;
|
||||
hls->initial_prog_date_time += segment->duration;
|
||||
previous_segment = segment;
|
||||
segment = previous_segment->next;
|
||||
if (playlist_duration <= -previous_segment->duration) {
|
||||
|
Loading…
Reference in New Issue
Block a user