Re: Duration

Moritz Bunkus <[email protected]> Fri, 11 Jan 2013 17:56:28 +0100
Newsgroups gmane.comp.multimedia.matroska.user
Message-ID <CANPayMRSdqZ_oHD07+aSh2QegbFx0t22XZHUVtBRmcWw6G_dSA@mail.gmail.com>
Hey,

On Fri, Jan 11, 2013 at 5:51 PM, Dan Hinsley <[email protected]> wrote:

>> it's indeed a 4 byte float. Simply dumped from the memory as it is.
>
> 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.

Ok, that was wrong, obviously, as all numeric data types are stored in
big endian in Matroska. So yes, on a little endian machine (which are
almost all desktop computers today) you have to byte-swap accordingly.

Kind regards
mosu
_______________________________________________
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