[FFmpeg-devel] [PATCH] avformat/concatdec: add fallback for calculating file duration

Paul B Mahol onemda at gmail.com
Wed Aug 30 17:30:50 EEST 2017


On 8/29/17, Justin Ruggles <justin.ruggles at gmail.com> wrote:
> If a file does not have a known duration, this leads to the timestamps
> starting over for the next file, causing non-monotonic timestamps.
> To prevent this, track the duration during demuxing and use it to
> determine the current file duration before opening the next file.
> ---
>  libavformat/concatdec.c | 20 ++++++++++++++++++--
>  1 file changed, 18 insertions(+), 2 deletions(-)
>

LGTM, but I'm not maintainer of that demuxer.


More information about the ffmpeg-devel mailing list