[FFmpeg-devel] [PATCH] avformat/concatdec: add fallback for calculating file duration
george at nsup.org
Wed Aug 30 17:51:50 EEST 2017
Le primidi 11 fructidor, an CCXXV, Justin Ruggles a écrit :
> 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(-)
I wonder if it would not be better to do that in the common code. I
think I assumed the duration of the file was being updated like that
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: Digital signature
More information about the ffmpeg-devel