diff options
author | Marton Balint <cus@passwd.hu> | 2018-11-22 00:59:45 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2019-01-22 20:14:11 +0100 |
commit | 1b126ec4087ab5d87d413116bee666495b0d2d3e (patch) | |
tree | be795a137ff26f20278233f2ce5010256fec4616 /libavformat/hlsproto.c | |
parent | 679cbd8f18719f470f7107ed0a7fbef1905ee85a (diff) |
avformat/concatdec: always re-calculate start time and duration
This allows the underlying files to change their duration on subsequent
avformat context opens.
An example use case where this matters:
ffconcat version 1.0
file dummy.mxf
file dummy.mxf
ffmpeg -re -stream_loop -1 -i dummy.ffconcat -f sdl2 none
The user can seamlessly change the input by atomically replacing dummy.mxf.
v2: Set ConcatFile duration in read_header for all segments with known
durations because from now on we always recalculate the start time in
open_file, and an instant seek could have caused unset ConcatFile durations.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/hlsproto.c')
0 files changed, 0 insertions, 0 deletions