Re: last frame duration

Moritz Bunkus <[email protected]> Fri, 24 Feb 2017 20:44:17 +0100
Newsgroups gmane.comp.multimedia.matroska.devel
Message-ID <[email protected]>
Hey,

> Could anyone help to check if the file is 100% spec-compliant ? If default
> duration is 0, do I need to set last frame duration?

Yes.

> or should it be calculated by whole duration - last frame position?

No. The file duration is calculated from the frame timestamps &
duration, not the other way around. Additionally, the file duration
doesn't have to refer to a certain track at all; it can easily be the
difference between the first audio frame's timestamp and the last
subtitle frame's timestamp+duration if that is the biggest
timestamp+duration in the file.

Kind regards,
mosu
_______________________________________________
Matroska-devel mailing list
[email protected]
https://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel
Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel