From 52902f61b8d65bfe0d75b27ad5033103264aae4b Mon Sep 17 00:00:00 2001 From: David Howden Date: Tue, 30 Jun 2015 23:06:50 +1000 Subject: [PATCH] Switch to using relative seeks only (last remaining call using SEEK_SET). --- sum.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sum.go b/sum.go index 4fb5fa1..29d8023 100644 --- a/sum.go +++ b/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) }