Switch to using relative seeks only (last remaining call using SEEK_SET).

This commit is contained in:
David Howden 2015-06-30 23:06:50 +10:00
parent 00cce15102
commit 52902f61b8

2
sum.go
View File

@ -132,7 +132,7 @@ func SumID3v2(r io.ReadSeeker) (string, error) {
return "", fmt.Errorf("error reading ID3v2 header: %v", err)
}
_, err = r.Seek(int64(header.Size)+10, os.SEEK_SET)
_, err = r.Seek(int64(header.Size), os.SEEK_CUR)
if err != nil {
return "", fmt.Errorf("error seeking to end of ID3V2 header: %v", err)
}