[FFmpeg-devel] [PATCH 2/4] concatdec: factorize duration calculating code to get_duration function

Nicolas George george at nsup.org
Mon Nov 9 18:53:48 CET 2015


Le nonidi 19 brumaire, an CCXXIV, Marton Balint a écrit :
> How do you know if it is reliable/authoritative? Is there a demuxer flag or
> something like that? Or you mean when the duration is explicitly set by the
> user or when inpoint and outpoint is both set, therefore the duration can be
> calculated?

That is what I call authoritative: even if the script does not hold the real
duration of the file, the script is considered right.

The duration is reliable when lavf has reached the end of the file and
computed the timestamps. In other words, when file->duration is set by the
current code, then it either authoritative or reliable.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151109/957d196b/attachment.sig>


More information about the ffmpeg-devel mailing list