Switch to using relative seeks only (last remaining call using SEEK_SET).
This commit is contained in:
parent
00cce15102
commit
52902f61b8
2
sum.go
2
sum.go
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user