[Matroska-devel] float vs. double issues

Moritz Bunkus moritz at bunkus.org
Tue Mar 30 21:40:49 CEST 2010


Hey,

On Tuesday 30 March 2010 21:33:22 Matthew Heaney wrote:

> How is a parser supposed to know what the serialized type is?  By inspecting
> the size field?

Yes. Four bytes = float, eight bytes = double.

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