Re: unpack('>f', b'\x00\x01\x00\x00')

2011-11-30 Thread kuaile xu
On Nov 30, 6:02 pm, Chris Rebert wrote: > On Wed, Nov 30, 2011 at 2:24 PM, kuaile xu wrote: > > Hi: > > > I am working on a python script that parses mp4 video header. Once of > > the field is a 32-bit fixed-point number. > > > I know that the four bytes are: 00,

unpack('>f', b'\x00\x01\x00\x00')

2011-11-30 Thread kuaile xu
Hi: I am working on a python script that parses mp4 video header. Once of the field is a 32-bit fixed-point number. I know that the four bytes are: 00, 01, 00, 00. I have a third party mp4 parsing program which displays this field's value is:1.0. However, the struct.unpack gets a value of 0.0.