• Bela Bodecs's avatar
    avformat/hlsenc: program_date_time and append_list flags conflict · dd5c7378
    Bela Bodecs authored
    When program_date_time flag is present, in m3u8 playlist file each
    segment has a corresponding EXT-X-PROGRAM-DATE-TIME value. The intial
    program-date-time value is the actual current time at init and
    each new segment increments this value by its duration. When append_list
    flags is also present, existing playlist parsing by hls_append_segment
    treats existing segments as new segments regarding the program-date-time
    calculation. But it should not do that, because this way all real the
    new segments' EXT-X-PROGRAM-DATE-TIME values will be shifted erroneously
    by the sum duration of existing segments. Instead it should have
    decremented the initial program-date-time value by its duration. This
    would ensure that
    the first new segment's program-date-time value had the current time as
    it is expected.
    This patch corrects this behaviour and prevent existing segments to
    increment the value of initial_prog_date_time variable but decrements
    it.
    Reviewed-by: 's avatarSteven Liu <lq@onvideo.cn>
    Signed-off-by: 's avatarBela Bodecs <bodecsb@vivanet.hu>
    dd5c7378
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...