Duration

"Dan Hinsley" <[email protected]> Fri, 11 Jan 2013 09:51:57 -0700
Newsgroups gmane.comp.multimedia.matroska.user
Message-ID <[email protected]>
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

_______________________________________________
Matroska-users mailing list
[email protected]
http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-users
Read Matroska-Users on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.user