[Matroska-users] Duration

Dan Hinsley danhi at cox.net
Fri Jan 11 17:51:57 CET 2013


it's indeed a 4 byte float. Simply dumped from the memory as it is.

Standard IEEE numeric format. See e.g.

http://msdn.microsoft.com/en-us/library/0b34tf65.aspx for the

interpretation.

 

In C you would simply do something like

 

float value;

fread(file, &value, 1, 4);

 

or something like that...

 

 

It appears that I have to turn 0x48185800 into 0x00581848 (switching the
halfwords, then the bytes within the half words)  to get the right answer.
So this must be some type of Big Endian, Little Endian issue, but I haven't
run into it before.  Anyway, I should be able to make it work now.

 

Dan

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.matroska.org/pipermail/matroska-users/attachments/20130111/be353d8b/attachment.html>


More information about the Matroska-users mailing list