[FFmpeg-trac] #5940(undetermined:new): hls: hls_list_size breaks program_date_time
FFmpeg
trac at avcodec.org
Fri Nov 11 11:04:52 EET 2016
#5940: hls: hls_list_size breaks program_date_time
-------------------------------------+-------------------------------------
Reporter: ronag | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: hls | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
If using hls_list_size together with program_date_time the EXT-X-PROGRAM-
DATE-TIME tags start to become wrong when segments are removed.
initial_prog_date_time should probably be incremented by the duration of
the segments removed.
This is because currently because when segments are removed their
accumulated duration is no longer added to prog_date_time in
https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/hlsenc.c#L569
When removing a segment at
https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/hlsenc.c#L406 we
should also increment the initial_prog_date_time by the duration of the
removed segment.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5940>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list