[Matroska-devel] float vs. double issues

Moritz Bunkus moritz at bunkus.org
Tue Mar 30 21:20:56 CEST 2010


Hey,

On Tuesday 30 March 2010 21:06:36 Matthew Heaney wrote:

> I have some files that use an 8-byte duration (in the SegmentInfo) and an
> 8-byte sampling rate (for the AudioTrack).  I think these have type
> duration, not type float.

You mean 'double', not duration. And you're right: EBML floats can be
either 'float' or 'double' C data types. The only floating point data
type that must not be used is 'long double' (the 80bit type).

When writing the application has the choice between 32 and 64bit
floating point types. The reader has to support both.

Regards,
Mosu

-- 
If Darl McBride was in charge, he'd probably make marriage
unconstitutional too, since clearly it de-emphasizes the commercial
nature of normal human interaction, and probably is a major impediment
to the commercial growth of prostitution. - Linus Torvalds


More information about the Matroska-devel mailing list