update to use new io.Seek consts, require min go1.7

This commit is contained in:
David Howden
2018-04-02 11:06:41 +10:00
parent 1264d437b3
commit e80a3fa76a
9 changed files with 24 additions and 30 deletions
+2 -3
View File
@@ -10,7 +10,6 @@ import (
"errors"
"fmt"
"io"
"os"
"strconv"
)
@@ -113,7 +112,7 @@ func (m metadataMP4) readAtoms(r io.ReadSeeker) error {
}
if !ok {
_, err := r.Seek(int64(size-8), os.SEEK_CUR)
_, err := r.Seek(int64(size-8), io.SeekCurrent)
if err != nil {
return err
}
@@ -246,7 +245,7 @@ func readCustomAtom(r io.ReadSeeker, size uint32) (string, uint32, error) {
case "data":
// Found the "data" atom, rewind
dataSize = subSize + 8 // will need to re-read "data" + size (4 + 4)
_, err := r.Seek(-8, os.SEEK_CUR)
_, err := r.Seek(-8, io.SeekCurrent)
if err != nil {
return "", 0, err
}