move towards using uint for all sizes (#59)

* move towards using uint for all sizes
* dsf: support larger files
This commit is contained in:
David Howden
2019-11-22 22:50:59 +11:00
committed by GitHub
parent 73beae5008
commit 7e5c04fecc
7 changed files with 54 additions and 44 deletions
+2 -2
View File
@@ -138,7 +138,7 @@ func (m metadataMP4) readAtomData(r io.ReadSeeker, name string, size uint32, pro
contentType = "text"
} else {
// read the data
b, err = readBytes(r, int(size))
b, err = readBytes(r, uint(size))
if err != nil {
return err
}
@@ -246,7 +246,7 @@ func readCustomAtom(r io.ReadSeeker, size uint32) (_ string, data []string, _ er
return "", nil, errors.New("--- invalid size")
}
b, err := readBytes(r, int(subSize-8))
b, err := readBytes(r, uint(subSize-8))
if err != nil {
return "", nil, err
}