1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00
FFmpeg/libavformat
Bela Bodecs dd5c7378bb avformat/hlsenc: program_date_time and append_list flags conflict
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: Steven Liu <lq@onvideo.cn>
Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu>
2020-01-20 14:34:26 +08:00
..
2020-01-08 01:32:26 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2020-01-08 01:32:26 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2017-09-20 03:31:48 +02:00
2019-12-12 19:25:33 +01:00
2019-08-13 15:38:57 +02:00
2017-09-01 18:52:56 +08:00
2019-12-12 19:25:33 +01:00
2019-12-25 22:10:47 +01:00
2019-10-29 16:20:33 +01:00
2019-12-12 19:25:33 +01:00
2020-01-08 01:32:26 +01:00
2019-12-12 19:25:33 +01:00
2019-05-20 11:58:12 -07:00
2019-12-11 16:24:16 +01:00
2019-09-02 23:08:43 +02:00
2019-12-12 19:25:33 +01:00
2019-10-08 13:47:16 +08:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2019-05-20 11:58:12 -07:00
2019-09-27 12:15:50 +02:00
2019-12-12 19:25:33 +01:00
2019-09-02 23:08:43 +02:00
2018-02-11 20:03:33 +01:00
2018-02-11 20:03:33 +01:00
2019-11-27 23:54:20 +01:00
2019-12-12 19:25:33 +01:00
2017-04-25 15:39:10 +02:00
2020-01-08 01:32:26 +01:00
2019-12-12 19:25:33 +01:00
2018-05-21 19:43:04 -03:00
2018-05-21 19:43:04 -03:00
2019-03-20 18:38:48 +01:00
2017-01-30 11:00:58 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2019-06-14 21:36:39 +02:00
2020-01-08 01:32:26 +01:00
2020-01-07 22:35:52 -03:00
2019-12-12 19:25:33 +01:00