diff --git a/Fixed.go b/Fixed.go index d47a912..d3c89c8 100644 --- a/Fixed.go +++ b/Fixed.go @@ -14,7 +14,9 @@ package gomp4 -import "encoding/binary" +import ( + "encoding/binary" +) type Fixed88 struct { b []byte @@ -63,7 +65,7 @@ func (fixed Fixed1616) ToFloat32() float32 { b := binary.BigEndian.Uint16(fixed.b[2:4]) result += float32(a) - result += float32(b) / 100_000 // max of uint16 is 65535 + result += float32(b) / 65535 // max of uint16 is 65535 return result }