Opened 3 years ago

Closed 3 years ago

#4802 closed defect (fixed)

Non atomic generation of m3u8 file

Reported by: mguesdon Owned by:
Priority: important Component: avformat
Version: git-master Keywords: segment regression
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Generation of m3u8 file in libavformat/segment.c is not atomic so one may get a partial m3u8 file when reading it.
In libavformat/hlsenc.c the operation is atomic (write to tmp file and next rename).

Change History (4)

comment:1 Changed 3 years ago by cehoyos

  • Keywords segment added; atomic write m3u8 removed
  • Priority changed from important to normal

Is this a regression?

comment:2 Changed 3 years ago by mguesdon

It's a regression compared to 1.0.10.
In 1.0.10 new segments are appended so the problem does not appear.
In newer versions, the file is entirely rewritten to adjust the #EXT-X-TARGETDURATION.

Last edited 3 years ago by mguesdon (previous) (diff)

comment:3 Changed 3 years ago by cehoyos

  • Keywords regression added
  • Priority changed from normal to important

comment:4 Changed 3 years ago by michael

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.